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()

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

.NET Framework
Available since 3.0
Return to top