Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramming for WPF, V3.4.2 (Read 3113 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 685
Joined: Apr 6th, 2003
Diagramming for WPF, V3.4.2
Jan 12th, 2017 at 11:39am
Print Post  
We have released version 3.4.2 of WPF Diagram control. It contains the following new features and improvements:

Fluent API
Extension methods in MindFusion.Diagramming.Fluent and MindFusion.Diagramming.Layout.Fluent namespaces add support for fluent programming style:

Code
Select All
using MindFusion.Diagramming.Wpf.Fluent;
using MindFusion.Diagramming.Wpf.Layout.Fluent;
//...

diagram.Factory
    .CreateShapeNode(20, 20, 60, 40)
        .Brush(Colors.LightGray)
        .Font("Arial", 12)
        .EnableStyledText(true)
        .Text("Task <i>1</i>")
        .ToolTip("This is the task")
        .TextRotationAngle(15);

new TreeLayout()
    .LevelDistance(20)
    .NodeDistance(20)
    .LinkStyle(TreeLayoutLinkType.Cascading3)
    .Arrange(diagram); 



DiagramLink improvements
  • The component no longer keeps a separate segmentCount field, removing a common source of errors. The SegmentCount property now calculates its value from ControlPoints elements. The UpdateFromPoints(updateGroups, updateSegments) overload has been removed too.
  • SegmentCount setter no longer refuses changing number of segments if auto-routing is enabled or the link is a self-loop.
  • The new Spline element of LinkShape enumeration draws links as interpolating splines that pass through all of their control points:

Miscellaneous
  • The RotationStep property of Diagram class specifies the increments applied to a node's RotationAngle during interactive rotation.
  • The Bounds property of DiagramNode now supports binding.
  • GridRouter evaluates routes between more remote sides of connected nodes when RoutingOptions.EvaluateFarPoints is enabled.
  • Fix for magnifier offset when origin of Diagram.Bounds is non-zero.
  • A new SpringLayout.Iterate overload can be run from a worker thread.

Installer for the latest version can be downloaded here, or from the clients area on our site:
https://mindfusion.eu/WpfDiagTrial.zip

Updated assemblies are also available as MindFusion.Diagramming.Wpf NuGet package.

Enjoy!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint