OnEnabledChanged Method

StylusPlugIn.OnEnabledChanged Method ()

 

Occurs when the Enabled property changes.

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

protected virtual void OnEnabledChanged()

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:
© 2016 Microsoft