Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
public class GraphSource : DependencyObject, ISupportInitialize |
| Visual Basic |
|---|
Public Class GraphSource _ Inherits DependencyObject _ Implements ISupportInitialize |
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.Windows..::..DependencyObject
yWorks.yFiles.UI.DataBinding..::..GraphSource