UIElement.StylusUp 事件


手寫筆在此項目上方,且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while it is over this element.

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



這個事件會為這個類別建立 Stylus.StylusUp 附加事件的別名,因此,當 UIElement 繼承為基底專案時,StylusUp 就是類別成員清單的一部分。This event creates an alias for the Stylus.StylusUp attached event for this class, so that StylusUp is part of the class members list when UIElement is inherited as a base element. 附加至 StylusUp 事件的事件處理常式會附加至基礎 Stylus.StylusUp 附加事件,並接收相同的事件資料實例。Event handlers that are attached to the StylusUp event are attached to the underlying Stylus.StylusUp 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 StylusUpEvent
路由策略Routing strategy 路由Bubbling
Delegate - 委派Delegate StylusEventHandler
  • 對應的通道事件為 PreviewStylusUpThe corresponding tunneling event is PreviewStylusUp.

  • 覆寫 OnStylusUp,以在衍生類別中為這個事件執行類別處理。Override OnStylusUp to implement class handling for this event in derived classes.