Keyboard.AddPreviewGotKeyboardFocusHandler Método

Definición

Agrega un controlador para el evento adjunto PreviewGotKeyboardFocus.

public:
 static void AddPreviewGotKeyboardFocusHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::KeyboardFocusChangedEventHandler ^ handler);
public static void AddPreviewGotKeyboardFocusHandler (System.Windows.DependencyObject element, System.Windows.Input.KeyboardFocusChangedEventHandler handler);
static member AddPreviewGotKeyboardFocusHandler : System.Windows.DependencyObject * System.Windows.Input.KeyboardFocusChangedEventHandler -> unit
Public Shared Sub AddPreviewGotKeyboardFocusHandler (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 al código y el procesamiento de atributos XAML del Keyboard.PreviewGotKeyboardFocus evento adjunto.

Se aplica a