Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StylusButtonState Enumeration

 

Represents the state of a StylusButton.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

Public Enumeration StylusButtonState

Member nameDescription
Down

The button is pressed down.

Up

The button is up.

The following example demonstrates how to determine the state of a StylusButton.

' Get the state of the StylusButton
Select Case myStylusButton.StylusButtonState
    Case StylusButtonState.Down
        textbox1.AppendText("StylusButton.State: Down" + vbCrLf)
    Case Else ' StylusButtonState.Up
        textbox1.AppendText("StylusButton.State: Up" + vbCrLf)
End Select

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft