Share via


SelectionTool.OnDeactivate Method

Called when a SelectionTool is deactivated.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Protected Overrides Sub OnDeactivate
'Usage
Me.OnDeactivate()
protected override void OnDeactivate()
protected:
virtual void OnDeactivate() override
protected override function OnDeactivate()

Remarks

When the user selects a different SelectionTool, the existing tool is deactivated and removed from the EditingContext.

.NET Framework Security

See Also

Reference

SelectionTool Class

SelectionTool Members

Microsoft.Windows.Design.Interaction Namespace

Selection

SelectionCommands

SelectionOperations

EditingContext

Tool

TaskProvider

Other Resources

WPF Designer Extensibility Architecture