MindFusion.Wpf Pack Programmer's Guide
DiagramNode.Expandable Property
See Also
 





Gets or sets a value indicating whether users are allowed to expand or collapse the subtree that starts from this node.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public bool Expandable { get; set; }

Visual Basic  Copy Code

Public Property Expandable As Boolean

 Property Value

true if users are allowed to expand / collapse the tree starting from this node; otherwise, false. The default is false.

 Remarks

This property is useful mostly when nodes form a tree-like hierarchical structure. If it is enabled, a small [±] button is drawn beside the node. Clicking that button either shows or hides all children of this node in the tree. It depends on the diagram's ExpandOnIncoming property which items connected to a node are considered its children. The tree expansion continues recursively down the child nodes if the RecursiveExpand property is enabled.

A tree can be collapsed or expanded programmatically by invoking the Collapse or Expand methods on the tree root node.

 See Also

DiagramNode Members
DiagramNode Class
MindFusion.Diagramming.Wpf Namespace
Expanded Property
Diagram.NodesExpandable Property
HtmlBuilder.ExpandBtnHyperLink Property