Поделиться через


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
    Get
    Set
public EditingContext Context { get; set; }
public:
property EditingContext^ Context {
    EditingContext^ get ();
    void set (EditingContext^ value);
}
member Context : EditingContext with get, set
function get Context () : EditingContext
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

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture