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

CopyNode1(Node, CopyDictionary) : Node

This copies a node by copying its elements.

nodedata
env
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
FindIsGroupForNode(Node) : bool

A node data is a group if it is a Group.

nodedata
FindIsLinkLabelForNode(Node) : bool

A node data is a link label if IsLinkLabel is true.

nodedata
MakeNodeKeyUnique(Node) : bool

This makes the node's Id string unique by suffixing an integer.

nodedata