GotStylusCapture Event

IInputElement.GotStylusCapture Event

Occurs when the element captures the stylus.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:

event StylusEventHandler GotStylusCapture
/** @event */
void add_GotStylusCapture (StylusEventHandler value)

/** @event */
void remove_GotStylusCapture (StylusEventHandler value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
You cannot use this event in XAML.

This interface is not intended for public implementation. For more information, see remarks for the IInputElement interface.

When an element captures the stylus, that element receives stylus input even if the cursor is outside its bounds. The stylus is typically captured in this manner only during drag-and-drop operations, and retains capture until the drop action of the drag-and-drop operation occurs.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2015 Microsoft