共用方式為


KeyTipService.AddPreviewKeyTipAccessedHandler 方法

定義

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

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

參數

element
DependencyObject

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

handler
KeyTipAccessedEventHandler

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

適用於