FrameworkElement.ToolTipClosing 事件


在項目上的任何工具提示正要關閉之前發生。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.

這個事件不可以是樣式中的 EventTriggerThis 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 ToolTipEventHandler
  • 覆寫 OnToolTipClosing,以在衍生類別中為這個事件執行類別處理。Override OnToolTipClosing to implement class handling for this event in derived classes.