Keyboard.RemovePreviewLostKeyboardFocusHandler 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除 PreviewLostKeyboardFocus 附加事件的處理常式。
public:
static void RemovePreviewLostKeyboardFocusHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::KeyboardFocusChangedEventHandler ^ handler);
public static void RemovePreviewLostKeyboardFocusHandler (System.Windows.DependencyObject element, System.Windows.Input.KeyboardFocusChangedEventHandler handler);
static member RemovePreviewLostKeyboardFocusHandler : System.Windows.DependencyObject * System.Windows.Input.KeyboardFocusChangedEventHandler -> unit
Public Shared Sub RemovePreviewLostKeyboardFocusHandler (element As DependencyObject, handler As KeyboardFocusChangedEventHandler)
參數
- element
- DependencyObject
接聽這個事件的 UIElement 或 ContentElement。
- handler
- KeyboardFocusChangedEventHandler
要移除的事件處理常式。
備註
這個方法會提供附加屬性存取 Keyboard.PreviewLostKeyboardFocus 子,以便存取附加事件的程序代碼。