Compartilhar via


Keyboard.AddPreviewLostKeyboardFocusHandler Método

Definição

Adiciona um manipulador ao evento anexado PreviewLostKeyboardFocus.

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

O UIElement ou ContentElement que escuta esse evento.

handler
KeyboardFocusChangedEventHandler

O manipulador de eventos a ser adicionado.

Comentários

Esse método fornece acessadores de propriedade anexados para acesso a código e processamento de atributo XAML do Keyboard.PreviewLostKeyboardFocus evento anexado.

Aplica-se a