Manages the visual appearance of an IGraph instance in a CanvasControl.

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

Syntax

C#
public class GraphModelManager
Visual Basic
Public Class GraphModelManager

Remarks

This class monitors the structural changes of an IGraph implementation and installs the necessary ICanvasObject instances in the canvas for each item in the graph. The actual installation of the items is delegated to different StyleInstaller<(Of <(<'TItem, TVisualStyle>)>)> instances depending on the type of the item. Typically one would use instances of this class as follows:
CopyC#
GraphModelManager manager = new GraphModelManager(canvasControl);
manager.Graph = graph;
Note that GraphControl has an instance of this type built-in already. This class will also use the node hierarchy to nest the nodes and edges accordingly.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.UI.Drawing..::..GraphModelManager

See Also