StylusPlugIn.Enabled Property

 

Gets or sets whether the StylusPlugIn is active.

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

Public Property Enabled As Boolean

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 Overrides Sub OnEnabledChanged()

    MyBase.OnEnabledChanged()

    If Me.Enabled Then
        MessageBox.Show("The StylusPlugin is enabled.")
    Else
        MessageBox.Show("The StylusPlugin is not enabled.")
    End If

End Sub 'OnEnabledChanged

.NET Framework
Available since 3.0
Return to top
Show: