PartsModel
StockSharp.Xaml.Diagram.GXDiagram.Model
A model where the data are FrameworkElements: Node and Link.
Inherits: GraphLinksModel<Node, string, string, Link>
Constructors
PartsModel()
Create an empty model of Parts.
Properties
Diagram : Diagram
Unlike most models, the PartsModel knows about the Diagram that owns the Parts that are this model's node data and link data.
LinkTemplate : DataTemplate
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
InsertLink(Node, string, Node, string) : Link
Create and insert a new link by constructing a Link.
- fromdata
- a non-null Node
- fromparam
- todata
- a non-null Node
- toparam
MakeNodeKeyUnique(Node) : bool
This makes the node's Id string unique by suffixing an integer.
- nodedata