UIElement.LostStylusCapture 事件


此元素失去手寫筆擷取時發生。Occurs when this element loses stylus capture.

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



當元素捕捉手寫筆時,它會接收手寫筆輸入,即使指標超出其範圍也一樣。When an element captures the stylus, it receives stylus input even if the pointer is outside its bounds. 手寫筆通常只會在拖放作業期間捕捉。The stylus is typically captured only during drag-and-drop operations.

因為此事件使用反升路由,所以失去焦點的元素可能是子項目,而不是實際附加事件處理常式的專案。Because this event uses bubbling routing, the element that loses focus might be a child element instead of the element where the event handler is actually attached. 檢查事件資料中的 Source,以判斷遺失焦點的實際元素。Check the Source in the event data to determine the actual element that lost focus.

這個事件會為這個類別建立 Stylus.LostStylusCapture 附加事件的別名,因此,當 UIElement 繼承為基底專案時,LostStylusCapture 就是類別成員清單的一部分。This event creates an alias for the Stylus.LostStylusCapture attached event for this class, so that LostStylusCapture is part of the class members list when UIElement is inherited as a base element. 附加至 LostStylusCapture 事件的事件處理常式會附加至基礎 Stylus.LostStylusCapture 附加事件,並接收相同的事件資料實例。Event handlers that are attached to the LostStylusCapture event are attached to the underlying Stylus.LostStylusCapture attached event and receive the same event data instance.

路由事件資訊Routed Event Information

識別碼欄位Identifier field LostStylusCaptureEvent
路由策略Routing strategy 路由Bubbling
Delegate - 委派Delegate StylusEventHandler
  • 沒有已定義的對應通道事件。There is no defined corresponding tunneling event.

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