Share via


ModelService.Root Property

When overridden in a derived class, gets the root of the object hierarchy.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property Root As ModelItem
    Get
public abstract ModelItem Root { get; }
public:
virtual property ModelItem^ Root {
    ModelItem^ get () abstract;
}
abstract Root : ModelItem
abstract function get Root () : ModelItem

Property Value

Type: Microsoft.Windows.Design.Model.ModelItem
The ModelItem which represents the root of the editing model tree.

Remarks

For linear stores, the Root property returns the first object in the store. For stores that represent a tree of objects, this property returns the topmost node of the tree.

.NET Framework Security

See Also

Reference

ModelService Class

Microsoft.Windows.Design.Services Namespace

ModelItem

Other Resources

Editing Model Architecture

WPF Designer Extensibility