StylusDevice.Inverted Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a value that indicates whether the secondary tip of the stylus is in use.

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

public bool Inverted { get; }

Property Value

Type: System.Boolean

true if the secondary tip of the stylus is in use; otherwise, false. The default is false.

The following example demonstrates the Inverted property.

private void OnStylusMove(object sender, StylusEventArgs e)
    StylusDevice myStylusDevice = e.StylusDevice;

    if (myStylusDevice != null)
        if (myStylusDevice.Inverted)
            textbox1.Text = "stylus moves with eraser down";
            textbox1.Text = "stylus moves with pen down";

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top