Edit this page

HierarchicalNodeViewModel

Telerik Diagramming Framework provides a list of ViewModels defined in the Telerik.Windows.Controls.Diagrams.Extensions.dll.

This article describes the HierarchicalNodeViewModel defined in the Diagramming Extensions.

Overview

HierarchicalNodeViewModel is a ViewModel designed to serve as a base ViewModel for hierarchical RadDiagramShapes in a data-bound RadDiagram. The class is defined to expose properties that allow you to track and save the children of a hierarchical shape. It derives from the NodeViewModelBase class.

HierarchicalNodeViewModel Inheritance Model
raddiagram-data-hierarchicalnodeviewmodel

HierarchicalNodeViewModel has a single constructor - HierarchicalNodeViewModel() that initializes a new instance of the class.

Properties

The HierarchicalNodeViewModel class exposes the following properties:

Name Description
Children Gets or sets an ObservableCollection of HierarchicalNodeViewModel items that represent the children of the current node.
HasChildren Gets a Boolean value indicating whether a HierarchicalNodeViewModel item has any children.

And as the class derives from the NodeViewModelBase, it also inherits all of its properties:

Inherited Properties

Name Description
Width Gets or sets a Double value indicating the Width of the represented shape.
Height Gets or sets a Double value indicating the Height of the represented shape.
RotationAngle Gets or sets a Double value indicating the rotation angle of the represented shape.
Visibility Gets or sets the Visibility of the represented shape. The property is of type Visibility.
Position Gets or sets the coordinates of a Point that represents the position of the represented shape.
Content Gets or sets an object that represents the content of a shape.
IsSelected Gets or sets a Boolean value indicating whether the represented shape is selected.

See Also