Share via


DesignerView.Context Property

Gets or sets the editing context for this view.

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

Syntax

'Declaration
Public Property Context As EditingContext
'Usage
Dim instance As DesignerView 
Dim value As EditingContext 

value = instance.Context

instance.Context = value
public EditingContext Context { get; set; }
public:
property EditingContext^ Context {
    EditingContext^ get ();
    void set (EditingContext^ value);
}
public function get Context () : EditingContext 
public function set Context (value : EditingContext)

Property Value

Type: Microsoft.Windows.Design.EditingContext
The EditingContext associated with the view.

Remarks

An editing context can have only one designer view associated with it at a time. When the context is set on a designer view, the view stores itself in the context. You must clear an existing view before setting a new one into the context.

.NET Framework Security

See Also

Reference

DesignerView Class

DesignerView Members

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture