This class is an adapter which creates a Graph from arbitrary business data (objects).

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


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


The business data can be set using the NodesSource, GroupsSource and EdgesSource properties. For business objects mapped to edges the SourceNodeBinding and the TargetNodeBinding need to be set, too. For assigning nodes to groups the GroupBinding has to be defined. Labels for the edges can be defined by setting a suitable EdgeLabelBinding.

The visual appearance of the graph constructed from the business objects is configurable using the NodeControlStyle, the GroupNodeControlStyle, the EdgeStyle and the EdgeLabelControlStyle properties.

Optionally a graph source can also update its Graph dynamically with respect to updates of the defining business objects (see DynamicUpdates).

Inheritance Hierarchy


See Also