共用方式為


Keyboard.RemovePreviewGotKeyboardFocusHandler 方法

定義

移除 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)

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
KeyboardFocusChangedEventHandler

要移除的事件處理常式。

備註

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

適用於