StylusPlugIn.OnIsActiveForInputChanged Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Occurs when the IsActiveForInput property changes.

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

protected virtual void OnIsActiveForInputChanged()

Use the OnIsActiveForInputChanged method to allocate and clean up resources used by the StylusPlugIn.

The following example demonstrates how to override the OnIsActiveForInputChanged method.

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

    if (!this.IsActiveForInput)
    {
        // Clean up any resources the plug-in uses.
    }
    else
    {
        // Allocate the resources the plug-in uses.
    }
}

.NET Framework
Available since 3.0
Return to top
Show: