Share via


DesignerView.FromContext Method

Returns the designer view stored in the specified context.

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

Syntax

'Declaration
Public Shared Function FromContext ( _
    context As EditingContext _
) As DesignerView
public static DesignerView FromContext(
    EditingContext context
)
public:
static DesignerView^ FromContext(
    EditingContext^ context
)
static member FromContext : 
        context:EditingContext -> DesignerView 
public static function FromContext(
    context : EditingContext
) : DesignerView

Parameters

Return Value

Type: Microsoft.Windows.Design.Interaction.DesignerView
A DesignerView stored in context, or nulla null reference (Nothing in Visual Basic) if a view does not exist.

Exceptions

Exception Condition
ArgumentNullException

context is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

DesignerView Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture