This topic introduces the Node Layouts and the node architecture of the xamOrgChart™ control.
The xamOrgChart control uses a concept called Node Layouts to determine which nodes are shown and where they are located in the organization. The Org Chart scans its items source and if an item matches a Node Layout object, a new node is created.
Node Layouts are responsible for:
The xamOrgChart control uses two key classes to work with nodes:
OrgChartNode – the actual Org Chart nodes. This class carries information about the parent and children nodes, the data shown by the node, and a reference to the OrgChartNodeLayout object used to create the node.
OrgChartNodeControl – the OrgChartNodeControl objects serve as visual representations of the OrgChartNode objects.
Whenever a node is moved out of the visible area of the Org Chart due to panning, the OrgChartNodeControl related to the node is disposed. Also, when the children of a node are collapsed, their OrgChartNodeControls are disposed.
If a node has to be shown, a new OrgChartNodeControl associated to the node is created and the NodeControlAttachedEvent is raised.
Related Topics