StylusDevice.Inverted Property

 

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";
        }
        else
        {
            textbox1.Text = "stylus moves with pen down";
        }
    }
}

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