AccessKeyManager.AddAccessKeyPressedHandler 方法

定义

AccessKeyPressed 附加事件添加处理程序。

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

参数

element
DependencyObject

侦听此事件的 UIElementContentElement

handler
AccessKeyPressedEventHandler

要添加的事件处理程序。

适用于