StylusPlugIn.OnIsActiveForInputChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the IsActiveForInput property changes.
protected:
virtual void OnIsActiveForInputChanged();
protected virtual void OnIsActiveForInputChanged ();
abstract member OnIsActiveForInputChanged : unit -> unit
override this.OnIsActiveForInputChanged : unit -> unit
Protected Overridable Sub OnIsActiveForInputChanged ()
Examples
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.
}
}
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
Remarks
Use the OnIsActiveForInputChanged method to allocate and clean up resources used by the StylusPlugIn.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.