Keyboard.AddLostKeyboardFocusHandler Método

Definición

Agrega un controlador para el evento adjunto LostKeyboardFocus.

public:
 static void AddLostKeyboardFocusHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::KeyboardFocusChangedEventHandler ^ handler);
public static void AddLostKeyboardFocusHandler (System.Windows.DependencyObject element, System.Windows.Input.KeyboardFocusChangedEventHandler handler);
static member AddLostKeyboardFocusHandler : System.Windows.DependencyObject * System.Windows.Input.KeyboardFocusChangedEventHandler -> unit
Public Shared Sub AddLostKeyboardFocusHandler (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.LostKeyboardFocus evento adjunto.

Se aplica a