Keyboard.AddLostKeyboardFocusHandler Metoda

Definicja

Dodaje procedurę obsługi dla dołączonego LostKeyboardFocus zdarzenia.

public:
 static void AddLostKeyboardFocusHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::KeyboardFocusChangedEventHandler ^ handler);
public static void AddLostKeyboardFocusHandler (System.Windows.DependencyObject element, System.Windows.Input.KeyboardFocusChangedEventHandler handler);
static member AddLostKeyboardFocusHandler : System.Windows.DependencyObject * System.Windows.Input.KeyboardFocusChangedEventHandler -> unit
Public Shared Sub AddLostKeyboardFocusHandler (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ń do dodania.

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.LostKeyboardFocus zdarzenia.

Dotyczy