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
    Get
protected EditingContext Context { get; }
protected:
property EditingContext^ Context {
    EditingContext^ get ();
}
member Context : EditingContext
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

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

WPF Designer Extensibility Architecture