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: 2.4.0.0

Syntax

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

Remarks

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

System..::..Object
  System.Windows..::..DependencyObject
    yWorks.yFiles.UI.DataBinding..::..GraphSource

See Also