Share via


AdornerProperties.GetView Method

Gets the view for the specified adorner.

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

Syntax

'Declaration
Public Shared Function GetView ( _
    adorner As DependencyObject _
) As ViewItem
public static ViewItem GetView(
    DependencyObject adorner
)
public:
static ViewItem^ GetView(
    DependencyObject^ adorner
)
static member GetView : 
        adorner:DependencyObject -> ViewItem 
public static function GetView(
    adorner : DependencyObject
) : ViewItem

Parameters

Return Value

Type: Microsoft.Windows.Design.Interaction.ViewItem
The view associated with adorner, or nulla null reference (Nothing in Visual Basic) if no view has been set.

Exceptions

Exception Condition
ArgumentNullException

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

.NET Framework Security

See Also

Reference

AdornerProperties Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture