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
- previousTool
Type: Microsoft.Windows.Design.Interaction.Tool
The tool that was in the context before this tool became active. The default Tool implementation does nothing with this parameter.
Remarks
To activate a tool, the tool is placed in the EditingContext. For example, Context.ContexItems.SetValue(theTool);.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace