Keyboard.RemovePreviewKeyUpHandler(DependencyObject, KeyEventHandler) 方法

定义

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

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

参数

element
DependencyObject

侦听此事件的 UIElementContentElement

handler
KeyEventHandler

要删除的事件处理程序。

注解

此方法提供附加属性访问器,用于对附加事件进行代码访问 Keyboard.PreviewKeyUp

适用于