StylusButtonState Enumeration
TOC
Collapse the table of content
Expand the table of content

StylusButtonState Enumeration

 

Represents the state of a StylusButton.

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

public enum 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
switch (myStylusButton.StylusButtonState)
{
    case StylusButtonState.Down:
        textbox1.AppendText("StylusButton.State: Down\n");
        break;

    default:  // StylusButtonState.Up
        textbox1.AppendText("StylusButton.State: Up\n");
        break;
}

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