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:


public class GraphModelManager
Visual Basic
Public Class GraphModelManager


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


See Also