Export (0) Print
Expand All

StylusPlugIn.Enabled Property

Gets or sets whether the StylusPlugIn is active.

Namespace:  System.Windows.Input.StylusPlugIns
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: Not mapped to an xmlns.

public bool Enabled { get; set; }
This property is not typically used in XAML.

Property Value

Type: System.Boolean
true if the StylusPlugIn is active; otherwise, false. The default is true.

The following example checks the value of the Enabled property in the OnEnabledChanged method.

protected override void OnEnabledChanged()
{
    base.OnEnabledChanged();

    if (this.Enabled)
    {
        MessageBox.Show("The StylusPlugin is enabled.");
    }
    else
    {
        MessageBox.Show("The StylusPlugin is not enabled.");
    }
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft