ContentElement.LostStylusCapture ContentElement.LostStylusCapture ContentElement.LostStylusCapture ContentElement.LostStylusCapture Event

定義

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

public:
 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附加事件,此類別中,以便LostStylusCapture屬於類別的成員清單時ContentElement繼承為基底的項目。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 ContentElement 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.

適用於