StylusPlugIn.IsActiveForInput Property

 

Gets whether the StylusPlugIn is able to accept input.

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

public bool IsActiveForInput { get; }

Property Value

Type: System.Boolean

true if the StylusPlugIn is able to accept input; otherwise false.

The following conditions must be met for the StylusPlugIn to accept input:

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: