Compartir vía


Keyboard.AddGotKeyboardFocusHandler Método

Definición

Agrega un controlador para el evento adjunto GotKeyboardFocus.

public:
 static void AddGotKeyboardFocusHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::KeyboardFocusChangedEventHandler ^ handler);
public static void AddGotKeyboardFocusHandler (System.Windows.DependencyObject element, System.Windows.Input.KeyboardFocusChangedEventHandler handler);
static member AddGotKeyboardFocusHandler : System.Windows.DependencyObject * System.Windows.Input.KeyboardFocusChangedEventHandler -> unit
Public Shared Sub AddGotKeyboardFocusHandler (element As DependencyObject, handler As KeyboardFocusChangedEventHandler)

Parámetros

element
DependencyObject

Objeto UIElement o ContentElement que escucha este evento.

handler
KeyboardFocusChangedEventHandler

Controlador de eventos que se va a agregar.

Comentarios

Este método proporciona descriptores de acceso de propiedad adjuntas para el acceso a código y el procesamiento de atributos XAML del Keyboard.GotKeyboardFocus evento adjunto.

Se aplica a