Udostępnij za pośrednictwem


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

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

AdornerPanel Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Adorner Architecture

Layout Space and Render Space

Feature Providers and Feature Connectors