FrameworkElement.ToolTipClosing FrameworkElement.ToolTipClosing FrameworkElement.ToolTipClosing FrameworkElement.ToolTipClosing Event


在項目上的任何工具提示正要關閉之前發生。Occurs just before any tooltip on the element is closed.

 event System::Windows::Controls::ToolTipEventHandler ^ ToolTipClosing;
public event System.Windows.Controls.ToolTipEventHandler ToolTipClosing;
member this.ToolTipClosing : System.Windows.Controls.ToolTipEventHandler 
Public Custom Event ToolTipClosing As ToolTipEventHandler 


標示ToolTipClosing為已處理的事件不會取消關閉工具提示。Marking the ToolTipClosing event as handled does not cancel closing the tooltip. 關閉工具提示完成後會顯示工具提示,只會在使用者與 UI 互動的回應。Once the tooltip is displayed, closing the tooltip is done only in response to user interaction with the UI.

此事件不可以是EventTrigger樣式。This event cannot be an EventTrigger in a style. 這是因為此事件的識別項欄位會重複使用從服務不會公開為服務層級事件的新增/移除事件方法的實作。This is because the identifier field of this event re-uses an implementation from a service that does not expose add/remove event methods for the service-level event.

路由事件資訊Routed Event Information

識別項欄位Identifier field ToolTipClosingEvent
路由策略Routing strategy 直接Direct
Delegate - 委派Delegate ToolTipEventHandler
  • 覆寫OnToolTipClosing實作在衍生類別中這個事件的類別處理。Override OnToolTipClosing to implement class handling for this event in derived classes.