Share via


Tool.Context Property

Gets the editing context for code within the tool.

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

Syntax

'Declaration
Protected ReadOnly Property Context As EditingContext
'Usage
Dim value As EditingContext 

value = Me.Context
protected EditingContext Context { get; }
protected:
property EditingContext^ Context {
    EditingContext^ get ();
}
protected function get Context () : EditingContext

Property Value

Type: Microsoft.Windows.Design.EditingContext
An EditingContext for code within the tool.

Remarks

The Context property is available only when a tool is active. If the tool is not active, this property will throw an InvalidOperationException.

.NET Framework Security

See Also

Reference

Tool Class

Tool Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

WPF Designer Extensibility Architecture