We have released version 1.5 of Xamarin Diagram control. It contains the following new features and improvements:
Free-form NodesA FreeFormNode collects all points from users' mouse or touch input and displays them as node's outline. To let users draw free-form nodes interactively, set Behavior to DrawFreeForms. Use the Points property of FreeFormNode to get or set outline points programmatically. If the Closed property is set, the node is drawn as a closed shape and its interior filled, or otherwise the node is drawn as a poly-line. If the distance between first and last points drawn by user is shorter than AutoCloseDistance, the node gets closed automatically.
If Behavior is set to DrawFreeShapes or LinkFreeShapes, input is still collected as points and rendered using FreeFormNode during user interaction, but once user finishes drawing, the diagram creates a ShapeNode with closest matching shape. Set the FreeFormTargets property to specify which shapes are considered as free-form replacements.
Export ImagesYou can now create a static image representing the current diagram using the CreateImage method. The method returns an instance of the Xamarin.Forms.ImageSource class. Alternatively, call ExportImage to export the diagram to a bitmap file.
Miscellaneous- Radial menu in UWP no longer changes selection.
- Set WhileModifying flag in TriggerRerouting to route links while nodes are being dragged.
- Link routing fixes.
- Fix for *modifying and *modified events not raising in some Behavior modes.
- Line gradient fixes.
The latest version can be downloaded here, or from the
clients area on our site:
https://mindfusion.eu/XamarinDiagram.zipUpdated assemblies are also available as
MindFusion.Diagramming.Xamarin NuGet package.
Enjoy!