AdornerPanel.Model Property

Gets or sets the ModelItem associated with the adorner panel.

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

Syntax

'Declaration
Public Property Model As ModelItem
    Get
    Set
public ModelItem Model { get; set; }
public:
property ModelItem^ Model {
    ModelItem^ get ();
    void set (ModelItem^ value);
}
member Model : ModelItem with get, set
function get Model () : ModelItem
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

ModelProperty

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

See Also

Reference

AdornerPanel Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Adorner Architecture

Feature Providers and Feature Connectors