Tool.OnActivate Method

Called when a tool is activated.

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

Syntax

'Declaration
Protected Overridable Sub OnActivate ( _
    previousTool As Tool _
)
protected virtual void OnActivate(
    Tool previousTool
)
protected:
virtual void OnActivate(
    Tool^ previousTool
)
abstract OnActivate : 
        previousTool:Tool -> unit 
override OnActivate : 
        previousTool:Tool -> unit 
protected function OnActivate(
    previousTool : Tool
)

Parameters

Remarks

To activate a tool, the tool is placed in the EditingContext. For example, Context.ContexItems.SetValue(theTool);.

.NET Framework Security

See Also

Reference

Tool Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

WPF Designer Extensibility Architecture