ContentElement.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 此类创建附加事件的别名,因此 LostStylusCaptureContentElement 继承为基元素时,它是类成员列表的一部分。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 StylusEventHandler
  • 未定义相应的隧道事件。There is no defined corresponding tunneling event.

  • 重写 OnLostStylusCapture 以在派生类中实现此事件的类处理。Override OnLostStylusCapture to implement class handling for this event in derived classes.