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

要从此元素的事件处理程序集合添加的特定处理程序实现。

适用于