This class is an adapter which creates a Graph from hierarchical business data.

Namespace: yWorks.yFiles.UI.DataBinding
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version:


public class TreeSource : DependencyObject, ISupportInitialize, IStyleHolder
Visual Basic
Public Class TreeSource _ Inherits DependencyObject _ Implements ISupportInitialize, IStyleHolder


The nodes in the tree are determined using the NodesSource and ChildBinding properties. Nodes will be visualized using the Style for NodeControls has been assigned to the NodeControlStyle property. The created Graph is a directed forest, a set of directed trees. Each directed tree has exactly one root node with no incoming edges. For every other node v in a directed tree there is exactly one directed path from the root node of the directed tree to node v. This class can be used to dynamically update the Graph when the underlying collection of the business objects (NodesSource and ChildBinding) changes.

Inheritance Hierarchy


See Also