PartsModel

StockSharp.Xaml.Diagram.GXDiagram.Model

A model where the data are FrameworkElements: Node and Link.

Inherits: GraphLinksModel<Node, string, string, Link>

Constructors

PartsModel
public PartsModel()
partsModel = PartsModel()

Create an empty model of Parts.

Properties

Diagram
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.

LinkTemplate
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

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
protected override bool FindIsGroupForNode(Node nodedata)
result = partsModel.FindIsGroupForNode(nodedata)

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

nodedata
FindIsLinkLabelForNode
protected override bool FindIsLinkLabelForNode(Node nodedata)
result = partsModel.FindIsLinkLabelForNode(nodedata)

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

nodedata
MakeNodeKeyUnique
protected override bool MakeNodeKeyUnique(Node nodedata)
result = partsModel.MakeNodeKeyUnique(nodedata)

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

nodedata