StylusPlugIn.OnIsActiveForInputChanged Method

Occurs when the IsActiveForInput property changes.

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

'Declaration
Protected Overridable Sub 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 Overrides Sub OnIsActiveForInputChanged()

    MyBase.OnIsActiveForInputChanged()

    If Not Me.IsActiveForInput Then 
        ' Clean up any resources the plug-in uses. 
    Else 
        ' Allocate the resources the plug-in uses. 
    End If 

End Sub 'OnIsActiveForInputChanged

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft