ItemPolicy.Context Property

Gets the editing context for the designer.

Namespace:  Microsoft.Windows.Design.Policies
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
The EditingContext for the designer.

Exceptions

Exception Condition
InvalidOperationException

The policy has not been activated.

Remarks

The Context property raises an exception if you try to access it when the policy is not activated.

.NET Framework Security

See Also

Reference

ItemPolicy Class

Microsoft.Windows.Design.Policies Namespace

PrimarySelectionPolicy

SelectionPolicy

FeatureProvider

FeatureConnectorAttribute

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility