Northwoods.GoWPF 1.3.5 Assembly
Model Property
See Also  Send Feedback
Northwoods.GoXam Namespace > Diagram Class : Model Property

Gets or sets the Northwoods.GoXam.Model.IDiagramModel that organizes the data to which this diagram is bound.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Model")>
Public Property Model As IDiagramModel
C# 
[CategoryAttribute("Model")]
public IDiagramModel Model {get; set;}

Property Value

The initial value is an instance of Northwoods.GoXam.Model.UniversalGraphLinksModel.

Remarks

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.

Requirements

See Also

© 2012 All Rights Reserved.