We have released version 2.5.2 of WpfDiagram. It adds the following new features:
Dynamic node shapesShape instances can be defined using custom code that takes into consideration the current width and height of nodes. This allows creating shapes whose primitive elements change non-uniformly, e.g. by growing only in width or height when a node is resized. There are two ways to create such shapes. The first one is to use the Shape constructor that takes a CreatePathDelegate parameter, which can be implemented using a .NET function. Another Shape constructor takes a string argument that represents a Visio-like shape formula evaluated in run-time. The latter method enables serializing the shape code in external files, which can be reused by different applications and by MindFusion components for other platforms.
SpringLayout improvements~ Better handling of large nodes and nodes with non-uniform size.
~ The SpringLayout energy model has been changed to one that leads to better symmetry in the arranged graphs. The old model can still be used by setting LayoutMethod to Classic. This is recommended when using rounded links.
~ The Randomize property allows starting the layout process from random node positions.
Miscellaneous~ Call SetZoomFactor to zoom the diagram with the specified zoom center point.
~ The DrawAdjustmentHandles method can be used when custom-drawing to render adjustment handles with their standard look and feel.
~ Set the StableSort property to get consistent results between different runs of LayeredLayout.
~ If hosted controls implement ICloneable, DiagramNodeAdapter uses the Clone method to copy them instead of serialization through XamlWriter and XamlReader.
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!