Keyboard.RemoveKeyDownHandler(DependencyObject, KeyEventHandler) 方法

定义

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

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

参数

element
DependencyObject

侦听此事件的 UIElementContentElement

handler
KeyEventHandler

要删除的事件处理程序。

注解

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

适用于