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 AdjacentNodesGraphSource : DependencyObject, ISupportInitialize, IStyleHolder
Visual Basic
Public Class AdjacentNodesGraphSource _ Inherits DependencyObject _ Implements ISupportInitialize, IStyleHolder


The nodes in the graph are determined using the NodesSource, PredecessorsBinding and SuccessorsBinding properties. The predecessors and successors bindings define the direct neighbors of a node. Edges are automatically added between a node and its predecessors and successors. Nodes will be visualized using the Style for NodeControls has been assigned to the NodeControlStyle property.

This class can be used to dynamically update the Graph when the underlying collection of the business objects changes. In this case, the nodes specified by NodesSource are always present. All other nodes, that are the ones defined only in the predecessor or successor binding, persist only if they are reachable by a sequence of neighborhood bindings that originates at a node specified by NodesSource. If a predecessor or successor connection is removed dynamically, graph components that are no longer reachable by a sequence of neighborhood bindings from a node specified by NodesSource are completely removed from the graph.

Inheritance Hierarchy


See Also