Stylus Class
Provides access to general information about a tablet pen.
Assembly: PresentationCore (in PresentationCore.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Captured | Gets the element to which the stylus is bound. |
![]() ![]() | CurrentStylusDevice | Gets the stylus that represents the stylus currently in use. |
![]() ![]() | DirectlyOver | Gets the element that is directly beneath the stylus. |
| Name | Description | |
|---|---|---|
![]() ![]() | IsFlicksEnabled | Gets or sets a value indicating whether flicks are enabled. |
![]() ![]() | IsPressAndHoldEnabled | Gets or sets a values indicating whether press and hold is enabled. |
![]() ![]() | IsTapFeedbackEnabled | Gets or sets whether a value indicating whether tap feedback is enabled. |
![]() ![]() | IsTouchFeedbackEnabled | Gets or sets whether a value indicating whether touch feedback is enabled. |
| Name | Description | |
|---|---|---|
![]() ![]() | GotStylusCapture | Occurs when an element captures the stylus events. |
![]() ![]() | LostStylusCapture | Occurs when an element releases stylus events. |
![]() ![]() | PreviewStylusButtonDown | Occurs when the user presses one of the buttons on the stylus. |
![]() ![]() | PreviewStylusButtonUp | Occurs when the user releases one of the buttons on the stylus. |
![]() ![]() | PreviewStylusDown | Occurs when user touches the tip of the stylus to the tablet. |
![]() ![]() | PreviewStylusInAirMove | Occurs if the stylus moves while it is within range of (but not touching) the tablet. |
![]() ![]() | PreviewStylusInRange | Occurs when the stylus comes within range of the tablet. |
![]() ![]() | PreviewStylusMove | Occurs when the stylus moves while it is touching the tablet. |
![]() ![]() | PreviewStylusOutOfRange | Occurs when the stylus goes out of range of the tablet. |
![]() ![]() | PreviewStylusSystemGesture | Occurs when the user makes a system gesture with this stylus. |
![]() ![]() | PreviewStylusUp | Occurs when the user lifts the stylus from the tablet. |
![]() ![]() | StylusButtonDown | Occurs when the user presses one of the buttons on the stylus. |
![]() ![]() | StylusButtonUp | Occurs when the user releases one of the buttons on the stylus. |
![]() ![]() | StylusDown | Occurs when the user touches the tip of the stylus to the tablet. |
![]() ![]() | StylusEnter | Occurs when the stylus cursor enters the bounds of an element. |
![]() ![]() | StylusInAirMove | Occurs when the stylus moves while it is in range of, but not touching, the tablet. |
![]() ![]() | StylusInRange | Occurs when the stylus comes within range of the tablet. |
![]() ![]() | StylusLeave | Occurs when the stylus cursor leaves the bounds of an element. |
![]() ![]() | StylusMove | Occurs when the stylus moves while it is touching the tablet. |
![]() ![]() | StylusOutOfRange | Occurs when the stylus goes out of range of the tablet. |
![]() ![]() | StylusSystemGesture | Occurs when the user makes a system gesture with this stylus. |
![]() ![]() | StylusUp | Occurs when the user raises the stylus from the Tablet PC. |
The following example demonstrates how to record the coordinates of the stylus, even if the stylus leaves the bounds of a TextBox. This example assumes that there is a TextBox called textBox1, and that the StylusDown, StylusUp, and StylusMove events are connected to event handlers.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




