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

Rock and Roll

Posts: 571
Joined: Apr 6th, 2003
Diagramming for WPF, V3.6
Aug 11th, 2020 at 12:40pm
Print Post  
We have released version 3.6 of WPF Diagram control. It contains the following improvements and fixes:

Animated layout
ArrangeAnimated methods added to Diagram and ContainerNode classes animate the movement of items from their original locations to new locations assigned by the layout object. This can be used to create an explode effect by starting new layout from overlapping nodes on same position, or an insertion effect by adding a new node to an existing layout.

JSON Serialization
Diagrams can now be serialized in JSON format. This can be used for interoperability with MindFusion JavaScript diagramming library, or for general storage in JSON files or databases. To serialize a Diagram to a JSON string, call its SaveToJson method. To deserialize a diagram back from its JSON representation, call the LoadFromJson method. Custom item classes can implement JSON serialization for their additional properties by overriding the SaveToJson and LoadFromJson methods of DiagramItem. Such classes must be registered for serialization by calling the RegisterItemClass method and providing a string identifier for the clientClass parameter.

Localization improvements
  • Right-to-left text support in PdfExporter.
  • Support for right-to-left text in styled text. This is still experimental and behind static Diagram.RightToLeftStyledText flag.
  • Fix for PdfExporter creating incorrect PDF files on Chinese versions of Windows.

  • Arrange method of ContainerNode arranges the child items inside a container using the specified layout class.
  • Set the AutoGrow property to false to prevent containers from resizing automatically when they would not fit newly added nodes.
  • New CreateDiagramLink overload of the Factory class makes it easier to create links between TreeViewNode items.
  • NodeCreateCancelled, NodeModifyCancelled, LinkCreateCancelled, LinkModifyCancelled events.
  • SelectionModifyCancelled event.
  • For consistency with MindFusion APIs for other platforms, the Diagram class now provides Arrange and ArrangeAsync (CLR 4.5+) methods that take a layout object as argument.
  • Fixed exception in GridRouter.

Installer for the latest version can be downloaded here, or from the clients area on our site:

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

« Last Edit: Nov 30th, 2020 at 1:07pm by Forum Admin »  
Back to top
IP Logged
Page Index Toggle Pages: 1
Send TopicPrint