Class OrganizedTree
A custom control that renders a hierarchical tree of data/relationships - typically the parent - child relationship visualization.
Namespace: Binarymission.WPF.Controls.TreeControls
Assembly: Binarymission.WPF.Controls.TreeControls.OrganizedTreeView.dll
Syntax
public class OrganizedTree : ContentControl
Constructors
OrganizedTree()
Initializes a new instance of the OrganizedTree class.
Declaration
public OrganizedTree()
Properties
ConnectingLineBrush
Gets or sets the connecting line brush.
Declaration
public Brush ConnectingLineBrush { get; set; }
ConnectingLineStrokeDashArray
Gets or sets the connecting line stroke dash array.
Declaration
public DoubleCollection ConnectingLineStrokeDashArray { get; set; }
ConnectingLineStyle
Gets or sets the connecting line style.
Declaration
public Style ConnectingLineStyle { get; set; }
ConnectingLineThickness
Gets or sets the connecting line thickness.
Declaration
public double ConnectingLineThickness { get; set; }
IsCollapseExpandOfNodesEnabled
Gets or sets a value indicating whether this instance supports the collapse / expand of nodes.
Declaration
public bool IsCollapseExpandOfNodesEnabled { get; set; }
IsUsingCustomLineStyle
Gets or sets a value indicating whether this instance is using custom line style.
Declaration
public bool IsUsingCustomLineStyle { get; set; }
Nodes
Gets or sets the nodes.
Declaration
public List<OrganizedTreeNode> Nodes { get; set; }
SpacingBetweenChildNodeToParent
Gets or sets the spacing between child node to parent.
Declaration
public double SpacingBetweenChildNodeToParent { get; set; }
SpacingBetweenSiblingNodes
Gets or sets the spacing between sibling nodes.
Declaration
public double SpacingBetweenSiblingNodes { get; set; }
TreeLayoutDirection
Gets or sets the tree layout direction.
Declaration
public TreeLayoutDirection TreeLayoutDirection { get; set; }
Methods
Export()
Exports the control's current visual state into a BitmapSource instance, so you can print or save it as you deem fit.
Declaration
public BitmapSource Export()
Returns
Type | Description |
---|---|
BitmapSource | BitmapSource. |
Print()
Prints the entire contents of this instance of the tree control (even if it scrolls).
Declaration
public void Print()
Print(Thickness)
Prints the entire contents of this instance of the tree control (even if it scrolls).
Declaration
public void Print(Thickness marginFactor)
Parameters
Type | Name | Description |
---|---|---|
Thickness | marginFactor |
Remarks
Using this overload of Print() method, you can specify the margin factor for the printed output.
RenderTree()
Renders the tree.
Declaration
public void RenderTree()