共用方式為


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

要加入的事件處理常式。

適用於