共用方式為


Keyboard.RemoveGotKeyboardFocusHandler 方法

定義

移除 GotKeyboardFocus 附加事件的處理常式。

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
KeyboardFocusChangedEventHandler

要移除的事件處理常式。

備註

這個方法會提供附加屬性存取 Keyboard.GotKeyboardFocus 子,以便存取附加事件的程序代碼。

適用於