Northwoods.GoXam Namespace > Diagram Class : Model Property |
<CategoryAttribute("Model")> Public Property Model As IDiagramModel
[CategoryAttribute("Model")] public IDiagramModel Model {get; set;}
Replacing this value causes all of the bound Nodes and Links to be deleted and re-created from the new model data. The value of NodesSource (and possibly LinksSource) will be updated too.
Models may be shared by multiple Diagrams. One common approach is to have two Diagrams displaying the same Model but using different DataTemplates and sometimes even different Layouts.