Manages the visual appearance of an IGraph instance
in a CanvasControl.
Namespace: yWorks.yFiles.UI.DrawingAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
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#
Note that GraphControl has an instance of this type
built-in already.
GraphModelManager manager = new GraphModelManager(canvasControl);
manager.Graph = graph;
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.UI.Drawing..::..GraphModelManager
yWorks.yFiles.UI.Drawing..::..GraphModelManager