StylusPlugIn.Enabled Property

 

Gets or sets whether the StylusPlugIn is active.

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

public bool Enabled { get; set; }

Property Value

Type: System.Boolean

true if the StylusPlugIn is active; otherwise, false. The default is true.

This property is not typically used in XAML.

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
Available since 3.0
Return to top
Show: