Keyboard.AddPreviewLostKeyboardFocusHandler(DependencyObject, KeyboardFocusChangedEventHandler) Keyboard.AddPreviewLostKeyboardFocusHandler(DependencyObject, KeyboardFocusChangedEventHandler) Keyboard.AddPreviewLostKeyboardFocusHandler(DependencyObject, KeyboardFocusChangedEventHandler) Keyboard.AddPreviewLostKeyboardFocusHandler(DependencyObject, KeyboardFocusChangedEventHandler) Method

Definición

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

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

Parámetros

element
DependencyObject DependencyObject DependencyObject DependencyObject

Objeto UIElement o ContentElement que escucha este evento.The UIElement or ContentElement that listens to this event.

handler
KeyboardFocusChangedEventHandler KeyboardFocusChangedEventHandler KeyboardFocusChangedEventHandler 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.PreviewLostKeyboardFocus 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.PreviewLostKeyboardFocus attached event.

Se aplica a