Skip to main content
.NET Framework Class Library
UIElementLostStylusCapture Event

Occurs when this element loses stylus capture.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Syntax
Public Event LostStylusCapture As [%$TOPIC/ms596676_en-us_VS_110_1_0_0_0_0%]
public event [%$TOPIC/ms596676_en-us_VS_110_1_0_1_0_0%] LostStylusCapture
public:
virtual   event [%$TOPIC/ms596676_en-us_VS_110_1_0_2_0_0%]^ LostStylusCapture {
	void add ([%$TOPIC/ms596676_en-us_VS_110_1_0_2_0_1%]^ value);
	void remove ([%$TOPIC/ms596676_en-us_VS_110_1_0_2_0_2%]^ value);
}
abstract LostStylusCapture : IEvent<[%$TOPIC/ms596676_en-us_VS_110_1_0_3_0_0%],
    [%$TOPIC/ms596676_en-us_VS_110_1_0_3_0_1%]>
override LostStylusCapture : IEvent<[%$TOPIC/ms596676_en-us_VS_110_1_0_3_0_2%],
    [%$TOPIC/ms596676_en-us_VS_110_1_0_3_0_3%]>
JScript does not support events.
<object LostStylusCapture="[%$TOPIC/ms596676_en-us_VS_110_1_0_5_0_0%]" .../>

Implements

IInputElementLostStylusCapture
Routed Event Information

Identifier field

LostStylusCaptureEvent

Routing strategy

Bubbling

Delegate

StylusEventHandler

  • There is no defined corresponding tunneling event.

  • Override OnLostStylusCapture to implement class handling for this event in derived classes.

Remarks

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. Check the Source in the event data to determine the actual element that lost focus.

This event creates an alias for the StylusLostStylusCapture attached event for this class, so that LostStylusCapture is part of the class members list when UIElement is inherited as a base element. Event handlers that are attached to the LostStylusCapture event are attached to the underlying StylusLostStylusCapture attached event and receive the same event data instance.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1