共用方式為


KeyTipService.AddActivatingKeyTipHandler 方法

定義

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

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

參數

element
DependencyObject

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

handler
ActivatingKeyTipEventHandler

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

適用於