Share via


Keyboard.AddGotKeyboardFocusHandler Metodo

Definizione

Aggiunge un gestore per l'evento associato GotKeyboardFocus.

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

Parametri

element
DependencyObject

Oggetto UIElement o ContentElement in ascolto su questo evento.

handler
KeyboardFocusChangedEventHandler

Gestore eventi da aggiungere.

Commenti

Questo metodo fornisce funzioni di accesso alle proprietà associate per l'accesso al codice e l'elaborazione degli attributi XAML dell'evento Keyboard.GotKeyboardFocus associato.

Si applica a