共用方式為


Keyboard.RemovePreviewKeyboardInputProviderAcquireFocusHandler 方法

定義

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

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
KeyboardInputProviderAcquireFocusEventHandler

要移除的事件處理常式。

備註

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

適用於