Share via


UIElement3D.MouseLeave 事件

定義

滑鼠指標離開此元素的邊界時發生。

public:
 virtual event System::Windows::Input::MouseEventHandler ^ MouseLeave;
public event System.Windows.Input.MouseEventHandler MouseLeave;
member this.MouseLeave : System.Windows.Input.MouseEventHandler 
Public Custom Event MouseLeave As MouseEventHandler 

事件類型

實作

備註

MouseLeave 是使用直接事件處理路由策略的 路由事件概觀 。 直接路由事件不會沿著路由引發;相反地,它們會在引發它們的相同元素中處理。

雖然 MouseLeave 追蹤滑鼠離開元素的時機,但此事件更常會報告 IsMouseOver 屬性值已從 true 變更為此 false 元素上的 。

這個事件會為此 Mouse.MouseLeave 類別建立附加事件的別名,以便在 MouseLeave 繼承為基底專案時 UIElement3D ,屬於類別成員清單的一部分。 附加至 MouseLeave 事件的事件處理程式會附加至基礎 Mouse.MouseLeave 附加事件,並接收相同的事件數據實例。

路由事件資訊

標識元欄位 MouseLeaveEvent
路由策略 直接
代理人 MouseEventHandler
  • 覆寫 OnMouseLeave 以在衍生類別中實作這個事件的類別處理。

適用於