Group

StockSharp.Xaml.Diagram.GXDiagram

A Group is a Node that may logically contain other Nodes and Links.

Inherits: Node

Constructors

Group()

Create an empty group with a default Layout.

Properties

GroupPanel : GroupPanel

Gets the GroupPanel representing the group's member nodes and links.

IsExpandedSubGraph : bool

Gets or sets whether this group is considered "expanded".

Layout : IDiagramLayout

Gets or sets the IDiagramLayout used to position the member nodes and route the member links of this Group.

MemberNodes : IEnumerable<Node>

Get a collection of Nodes that are immediate members of this group.

Ungroupable : bool

Gets or sets whether the user may delete this group without removing any members.

Methods

CanUngroup() : bool

This predicate is true if the user may ungroup this node.

Returns: Return true if this group is Ungroupable, if this node's layer's AllowUngroup is true, and if this node's diagram's AllowUngroup is true.

CollapseSubGraph()

Collapse each of the member nodes and links, and recursively collapse any member groups.

ExpandSubGraph()

Make visible each member node and link, and perhaps recursively expand nested subgraphs.

FindSubGraphParts() : IEnumerable<Part>

Return a collection of Parts that are all of the nodes and links that are members of this group, including inside nested groups, but excluding this Group itself.

GetIsSubGraphExpanded(DependencyObject) : bool

Gets the value of the IsSubGraphExpandedProperty attached dependency property.

d
the root VisualElement
GetLayout(DependencyObject) : IDiagramLayout

Gets the value of the LayoutProperty attached dependency property.

d
the root VisualElement
GetUngroupable(DependencyObject) : bool

Gets the value of the Ungroupable attached dependency property.

d
the root VisualElement
GetWasSubGraphExpanded(DependencyObject) : bool

Gets the value of the WasSubGraphExpandedProperty attached dependency property.

d
the root VisualElement
Move(Point, bool)

Move not only this node but also all member nodes and links recursively.

newpos
a new Position in model coordinates; not a new Location
animated
whether the movement is animated by the diagram's LayoutManager
OnApplyTemplate()

Initialize IsExpandedSubGraph with the possibly bound value of DependencyObject) on this group's root visual element, and initialize the Layout.

OnIsExpandedSubGraphChanged()

This virtual method is called whenever the value of IsExpandedSubGraph changes.

SetIsSubGraphExpanded(DependencyObject, bool)

Sets the value of the IsSubGraphExpandedProperty attached dependency property.

d
the root VisualElement
v
SetLayout(DependencyObject, IDiagramLayout)

Sets the value of the LayoutProperty attached dependency property.

d
the root VisualElement
v
SetUngroupable(DependencyObject, bool)

Sets the value of the Ungroupable attached dependency property.

d
the root VisualElement
v
SetWasSubGraphExpanded(DependencyObject, bool)

Sets the value of the WasSubGraphExpandedProperty attached dependency property.

d
the root VisualElement
v

Fields

IsExpandedSubGraphProperty : DependencyProperty

Identifies the IsExpandedSubGraph dependency property.

IsSubGraphExpandedProperty : DependencyProperty

Identifies the IsSubGraphExpanded attached dependency property that must only be on the root VisualElement.

LayoutProperty : DependencyProperty

Identifies the Layout attached dependency property that must only be on the root VisualElement.

UngroupableProperty : DependencyProperty

Identifies the Ungroupable attached dependency property that must only be on the root VisualElement.

WasSubGraphExpandedProperty : DependencyProperty

Identifies the WasSubGraphExpanded attached dependency property that must only be on the root VisualElement.