UIElement.StylusLeave UIElement.StylusLeave UIElement.StylusLeave UIElement.StylusLeave Event

定義

手寫筆離開元素的邊界時發生。Occurs when the stylus leaves the bounds of the element.

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

實作

備註

StylusLeave路由的事件使用直接的事件處理路由策略。StylusLeave is a routed event that uses the direct event handling routing strategy. 直接路由的事件不會引發路由;相反地,它們會以處理相同的項目引發的狀況。Direct routed events are not raised along a route; instead, they are handled in the same element where they are raised. 不過,它們會啟用路由的事件的行為,例如樣式中的事件觸發程序的其他層面。However, they do enable other aspects of routed event behavior, such as event triggers in styles.

雖然StylusLeave追蹤何時手寫筆離開元素,此事件的邊界更多解譯為常值回報IsStylusOver屬性值已從truefalse這個項目上。Although StylusLeave tracks when the stylus leaves the bounds of an element, this event more literally reports that the IsStylusOver property value has changed from true to false on this element.

此事件建立的別名Stylus.StylusLeave附加事件,此類別中,以便StylusLeave屬於類別的成員清單時UIElement繼承為基底的項目。This event creates an alias for the Stylus.StylusLeave attached event for this class, so that StylusLeave is part of the class members list when UIElement is inherited as a base element. 附加至事件處理常式StylusLeave事件會附加至基礎Stylus.StylusLeave附加事件,並接收相同的事件資料執行個體。Event handlers that are attached to the StylusLeave event are attached to the underlying Stylus.StylusLeave attached event and receive the same event data instance.

觸控、 滑鼠及手寫筆輸入存在於特定的關聯性。Touch, mouse, and stylus input exist in a particular relationship. 如需詳細資訊,請參閱 < 輸入概觀For more information, see Input Overview.

路由事件資訊Routed Event Information

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

適用於