MindFusion.Diagramming for WPF V4.2.2
Released: Jan 9, 2026
V4.2.2 での更新項目
機能
- 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 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 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.
- 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 BinaryFormatter NuGet package to .NET 10 projects).
不具合の修正
- Fixed stale layout when a second DiagramView on inactive tab is bound to a shared Diagram.