AdornerPanel.Model Property
Gets or sets the ModelItem associated with the adorner panel. This is a dependency property.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Property Model As ModelItem
'Usage
Dim instance As AdornerPanel
Dim value As ModelItem
value = instance.Model
instance.Model = value
public ModelItem Model { get; set; }
public:
property ModelItem^ Model {
ModelItem^ get ();
void set (ModelItem^ value);
}
public function get Model () : ModelItem
public function set Model (value : ModelItem)
Property Value
Type: Microsoft.Windows.Design.Model.ModelItem
The ModelItem associated with the adorner panel.
Dependency Property Information
Identifier field |
|
Metadata properties set to true |
None |
Remarks
The model may be used by the adorner panel as a data binding target. Also, it is used by the adorner layer to automatically remove the adorner if the model is removed. If this value is nulla null reference (Nothing in Visual Basic), the adorner does not automatically remove itself when the underlying model object is removed.
.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