We have released version 2.7 of WpfDiagram. It adds the following new features and improvements:
Interactive node alignmentIf AutoAlignNodes is enabled, the node currently being drawn or resized is aligned to another node so that a pair of their vertical or horizontal sides become collinear. To specify the maximal distance at which nodes are aligned, set the AutoAlignDistance property. The pair of aligned nodes is indicated visually by drawing an alignment guide using the pen assigned to AlignmentGuidePen.
Fractal tree layoutFractalLayout is a tree layout algorithm that places child nodes symmetrically around their parent node. Nodes at the lowest level are arranged directly in a circle around their parent. At the upper level, the already arranged nodes form branches that are arranged in a circle around the new parent node. The algorithm is recursively repeated till the highest level is reached. If nodes in the tree have uniform number of children, the end result has fractal-like appearance (subsets of the graph look like scaled-down copies of the whole graph):
You can choose which node should be displayed at the center of the topmost circle by setting the Root property. If it is not specified, the algorithm automatically selects a root that leads to more balanced distribution of nodes.
Miscellaneous~ Specify start and end nodes in LayeredLayout via the StartNode and EndNode properties.
~ GetAllIncomingLinks and GetAllOutgoingLinks methods added to DiagramNode.
~ Self-loop links that connect TableNode rows or TreeViewNode items are now routed around the node preserving their correct end points.
~ Links automatically align to the center of table rows or tree-view items when AutoSnapLinks is enabled.
~ Diagram.Viewport returns the currently visible region of the diagram.
~ Draw with the right or middle mouse button by setting RightButtonAction or MiddleButtonAction to Draw.
Registered customers with an active upgrade subscription can download the licensed version from the
clients area on our site.
A trial version is available for download here:
https://mindfusion.eu/WpfDiagTrial.zip Enjoy!