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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.