PartsModel
A model where the data are FrameworkElements: Node and Link.
Inherits: GraphLinksModel<Node, string, string, Link>
Constructors
Properties
public Diagram Diagram { get; set; }
value = partsModel.Diagram
partsModel.Diagram = value
Unlike most models, the PartsModel knows about the Diagram that owns the Parts that are this model's node data and link data.
public DataTemplate LinkTemplate { get; set; }
value = partsModel.LinkTemplate
partsModel.LinkTemplate = value
Gets or sets a DataTemplate that implements the appearance of each link that is created by String).
Methods
CopyLink2(Link, CopyDictionary, Link, Node, Node, Node)
This finishes the copying of a link by updating any references to the "from" node, the "to" node, and any "label" node.
- oldlinkdata
- env
- newlinkdata
- newfromnodedata
- newtonodedata
- newlinklabel
CopyNode2(Node, CopyDictionary, Node, Node, IEnumerable<Node>)
This finishes the copying of a node by updating any reference to a containing group node.
- oldnodedata
- the original Node
- env
- newnodedata
- the copied Node
- newgroup
- the node whose Id is the new value for the PartsModelContainingSubGraph property
- newmembers
- unused
protected override bool FindIsGroupForNode(Node nodedata)
result = partsModel.FindIsGroupForNode(nodedata)
A node data is a group if it is a Group.
- nodedata
protected override bool FindIsLinkLabelForNode(Node nodedata)
result = partsModel.FindIsLinkLabelForNode(nodedata)
A node data is a link label if IsLinkLabel is true.
- nodedata
protected override Link InsertLink(Node fromdata, string fromparam, Node todata, string toparam)
result = partsModel.InsertLink(fromdata, fromparam, todata, toparam)
Create and insert a new link by constructing a Link.
- fromdata
- a non-null Node
- fromparam
- todata
- a non-null Node
- toparam
protected override bool MakeNodeKeyUnique(Node nodedata)
result = partsModel.MakeNodeKeyUnique(nodedata)
This makes the node's Id string unique by suffixing an integer.
- nodedata