Partilhar via


Keyboard.AddPreviewGotKeyboardFocusHandler Método

Definição

Adiciona um manipulador ao evento anexado 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

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 ao código e processamento de atributo XAML do Keyboard.PreviewGotKeyboardFocus evento anexado.

Aplica-se a