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


Rock and Roll

Posts: 740
Joined: Apr 6th, 2003
Diagramming for WPF, V4.2.2
Jan 10th, 2026 at 8:49am
Print Post  
We have released version 4.2.2 of WPF Diagramming library. It contains the following new features and improvements:

Tag serialization
  • Due to the removal of BinaryFormatter in .NET 9+, complex Tag and Id objects (class or struct instances) are now saved using System.Xml.Serialization.XmlSerializer when saving a diagram to XML. SerializeTag and DeserializeTag events still allow you to implement custom serialization.
  • Complex Tag and Id objects (class or struct instances) are now saved using System.Text.Json.JsonSerializer when saving a diagram to JSON. JsonSerializeTag and JsonDeserializeTag events still allow you to implement custom serialization.

Avalonia.XPF / multi-platform support
The control can now be loaded under Avalonia.XPF. When non-Windows system is detected, DiagramView replaces some native win32 API calls used to initialize GraphicsUnit.Pixel, avoiding P/invoke exceptions.

Miscellaneous
  • Fixed stale layout when a second DiagramView on inactive tab is bound a shared Diagram.

API changes
XmlSerializer used to save Tag and Id objects could be a breaking change if the tag types are not serializable to XML out of the box. You can continue to serialize tags in binary format by setting the UseXmlSerializer property of XmlOptions to false (and adding the System.Runtime.Serialization.Formatters NuGet package to .NET 10 projects).

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

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

Enjoy!
« Last Edit: Mar 5th, 2026 at 3:30pm by Forum Admin »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint