共用方式為


KeyTipService.AddKeyTipAccessedHandler 方法

定義

加入 KeyTipAccessed 事件的路由事件處理常式。

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

參數

element
DependencyObject

要附加處理常式之路由事件的識別項。

handler
KeyTipAccessedEventHandler

要在這個項目上加入事件處理常式集合的特定處理常式實作。

適用於