ToolTipService.AddToolTipOpeningHandler 方法

定义

ToolTipOpening 附加事件添加处理程序。

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

参数

element
DependencyObject

侦听此事件的 UIElementContentElement

handler
ToolTipEventHandler

要添加的事件处理程序。

适用于