Keyboard.AddGotKeyboardFocusHandler(DependencyObject, KeyboardFocusChangedEventHandler) Método

Definición

Agrega un controlador para el evento adjunto GotKeyboardFocus.Adds a handler for the GotKeyboardFocus attached event.

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.The UIElement or ContentElement that listens to this event.

handler
KeyboardFocusChangedEventHandler

Controlador de eventos que se va a agregar.The event handler to be added.

Comentarios

Este método proporciona descriptores de acceso de propiedad adjuntos para el Keyboard.GotKeyboardFocus acceso al código y XAMLXAML el procesamiento de atributos del evento adjunto.This method provides attached property accessors for code access and XAMLXAML attribute processing of the Keyboard.GotKeyboardFocus attached event.

Se aplica a