Share via


AdornerProperties.GetModel Method

Gets the model item associated with the specified adorner.

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

Syntax

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

Parameters

Return Value

Type: Microsoft.Windows.Design.Model.ModelItem
The ModelItem associated with adorner.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

The adorner is associated with the view that corresponds to the model item.

.NET Framework Security

See Also

Reference

AdornerProperties Class

Microsoft.Windows.Design.Interaction Namespace

ModelItem

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture