AdornerProperties.SetModel Method
Sets 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 Sub SetModel ( _
adorner As DependencyObject, _
value As ModelItem _
)
public static void SetModel(
DependencyObject adorner,
ModelItem value
)
public:
static void SetModel(
DependencyObject^ adorner,
ModelItem^ value
)
static member SetModel :
adorner:DependencyObject *
value:ModelItem -> unit
public static function SetModel(
adorner : DependencyObject,
value : ModelItem
)
Parameters
- adorner
Type: System.Windows.DependencyObject
The adorner element to set the model for.
- value
Type: Microsoft.Windows.Design.Model.ModelItem
The ModelItem to associate 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace