Bagikan melalui


Keyboard.RemovePreviewGotKeyboardFocusHandler Metode

Definisi

Menghapus handler untuk kejadian terlampir PreviewGotKeyboardFocus .

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

Parameter

element
DependencyObject

UIElement atau ContentElement yang mendengarkan peristiwa ini.

handler
KeyboardFocusChangedEventHandler

Penanganan aktivitas yang akan dihapus.

Keterangan

Metode ini menyediakan aksesor properti terlampir untuk akses kode ke peristiwa terlampir Keyboard.PreviewGotKeyboardFocus .

Berlaku untuk