Keyboard.RemovePreviewKeyDownHandler 方法

定义

移除 PreviewKeyDown 附加事件的处理程序。

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

参数

element
DependencyObject

侦听此事件的 UIElementContentElement

handler
KeyEventHandler

要删除的事件处理程序。

注解

此方法提供附加属性访问器,以便代码访问 Keyboard.PreviewKeyDown 附加事件。

适用于