HypernovaDesktop Components · docs
Binarymission
WPFOrganisation Tree View › OrganizedTree

OrganizedTree

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.TreeControls

A custom control that renders a hierarchical tree of data/relationships - typically the parent - child relationship visualization.

public class OrganizedTree : ContentControl

Inherits from / implements: ContentControl

Members at a glance

OrganizedTreeInitializes a new instance of the OrganizedTree class.
ConnectingLineBrushGets or sets the connecting line brush.
ConnectingLineStrokeDashArrayGets or sets the connecting line stroke dash array.
ConnectingLineStyleGets or sets the connecting line style.
ConnectingLineThicknessGets or sets the connecting line thickness.
IsCollapseExpandOfNodesEnabledGets or sets a value indicating whether this instance supports the collapse / expand of nodes.
IsUsingCustomLineStyleGets or sets a value indicating whether this instance is using custom line style.
NodesGets or sets the nodes.
SpacingBetweenChildNodeToParentGets or sets the spacing between child node to parent.
SpacingBetweenSiblingNodesGets or sets the spacing between sibling nodes.
TreeLayoutDirectionGets or sets the tree layout direction.
ExportExports the control's current visual state into a BitmapSource instance, so you can print or save it as you deem fit.
PrintPrints the entire contents of this instance of the tree control (even if it scrolls).
PrintPrints the entire contents of this instance of the tree control (even if it scrolls).
RenderTreeRenders the tree.
ConnectingLineBrushPropertyIdentifies the ConnectingLineBrush dependency property.
ConnectingLineStrokeDashArrayPropertyIdentifies the ConnectingLineStrokeDashArray dependency property.
ConnectingLineStylePropertyIdentifies the ConnectingLineStyle dependency property.
ConnectingLineThicknessPropertyIdentifies the ConnectingLineThickness dependency property.
IsCollapseExpandOfNodesEnabledPropertyIdentifies the IsCollapseExpandOfNodesEnabled dependency property.
IsShowConnectingLinesPropertyIdentifies the IsShowConnectingLines dependency property.
IsUsingCustomLineStylePropertyIdentifies the IsUsingCustomLineStyle dependency property.
NodesPropertyIdentifies the Nodes dependency property.
SpacingBetweenChildNodeToParentPropertyIdentifies the SpacingBetweenChildNodeToParent dependency property.
SpacingBetweenSiblingNodesPropertyIdentifies the SpacingBetweenSiblingNodes dependency property.
TreeLayoutDirectionPropertyIdentifies the TreeLayoutDirection dependency property.

Constructors

OrganizedTree

public OrganizedTree()

Initializes a new instance of the OrganizedTree class.

Properties

ConnectingLineBrush

public Brush ConnectingLineBrush

Gets or sets the connecting line brush.

Value. The connecting line brush.

ConnectingLineStrokeDashArray

public DoubleCollection ConnectingLineStrokeDashArray

Gets or sets the connecting line stroke dash array.

Value. The connecting line stroke dash array.

ConnectingLineStyle

public Style ConnectingLineStyle

Gets or sets the connecting line style.

Value. The connecting line style.

ConnectingLineThickness

public double ConnectingLineThickness

Gets or sets the connecting line thickness.

Value. The connecting line thickness.

IsCollapseExpandOfNodesEnabled

public bool IsCollapseExpandOfNodesEnabled

Gets or sets a value indicating whether this instance supports the collapse / expand of nodes.

IsUsingCustomLineStyle

public bool IsUsingCustomLineStyle

Gets or sets a value indicating whether this instance is using custom line style.

Value. true if this instance is using custom line style; otherwise, false .

Nodes

public List<OrganizedTreeNode> Nodes

Gets or sets the nodes.

Value. The nodes.

SpacingBetweenChildNodeToParent

public double SpacingBetweenChildNodeToParent

Gets or sets the spacing between child node to parent.

Value. The spacing between child node to parent.

SpacingBetweenSiblingNodes

public double SpacingBetweenSiblingNodes

Gets or sets the spacing between sibling nodes.

Value. The spacing between sibling nodes.

TreeLayoutDirection

public TreeLayoutDirection TreeLayoutDirection

Gets or sets the tree layout direction.

Value. The tree layout direction.

Methods

Export

public BitmapSource Export()

Exports the control's current visual state into a BitmapSource instance, so you can print or save it as you deem fit.

Returns. BitmapSource.

Print

public void Print()

Prints the entire contents of this instance of the tree control (even if it scrolls).

Print

public void Print(Thickness marginFactor)

Prints the entire contents of this instance of the tree control (even if it scrolls).

Using this overload of Print() method, you can specify the margin factor for the printed output.

RenderTree

public void RenderTree()

Renders the tree.

Fields

ConnectingLineBrushProperty

public static readonly DependencyProperty ConnectingLineBrushProperty

Identifies the ConnectingLineBrush dependency property.

ConnectingLineStrokeDashArrayProperty

public static readonly DependencyProperty ConnectingLineStrokeDashArrayProperty

Identifies the ConnectingLineStrokeDashArray dependency property.

ConnectingLineStyleProperty

public static readonly DependencyProperty ConnectingLineStyleProperty

Identifies the ConnectingLineStyle dependency property.

ConnectingLineThicknessProperty

public static readonly DependencyProperty ConnectingLineThicknessProperty

Identifies the ConnectingLineThickness dependency property.

IsCollapseExpandOfNodesEnabledProperty

public static DependencyProperty IsCollapseExpandOfNodesEnabledProperty

Identifies the IsCollapseExpandOfNodesEnabled dependency property.

IsShowConnectingLinesProperty

public static DependencyProperty IsShowConnectingLinesProperty

Identifies the IsShowConnectingLines dependency property.

IsUsingCustomLineStyleProperty

public static DependencyProperty IsUsingCustomLineStyleProperty

Identifies the IsUsingCustomLineStyle dependency property.

NodesProperty

public static DependencyProperty NodesProperty

Identifies the Nodes dependency property.

SpacingBetweenChildNodeToParentProperty

public static DependencyProperty SpacingBetweenChildNodeToParentProperty

Identifies the SpacingBetweenChildNodeToParent dependency property.

SpacingBetweenSiblingNodesProperty

public static DependencyProperty SpacingBetweenSiblingNodesProperty

Identifies the SpacingBetweenSiblingNodes dependency property.

TreeLayoutDirectionProperty

public static DependencyProperty TreeLayoutDirectionProperty

Identifies the TreeLayoutDirection dependency property.