Keyboard.AddGotKeyboardFocusHandler Metoda

Definicja

Dodaje procedurę obsługi dołączonego GotKeyboardFocus zdarzenia.

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)

Parametry

element
DependencyObject

Element UIElement lub ContentElement , który nasłuchuje tego zdarzenia.

handler
KeyboardFocusChangedEventHandler

Program obsługi zdarzeń, który ma zostać dodany.

Uwagi

Ta metoda zapewnia dołączone metody dostępu do właściwości na potrzeby dostępu do kodu i przetwarzania atrybutów XAML dołączonego Keyboard.GotKeyboardFocus zdarzenia.

Dotyczy