Hi.
I am trying to create a window with a diagram, in which the user can add shapes (rectangle, triangle, ellipse) , change the size and save/load.
The issue is that the size of the shape is not used when adding the controls to the grid upon loading them.
I've created a sample user-control that shows this behavior. you can see that I've added via code few shapes. the shape of type Rectangle uses the given width/height, while the ellipse shape uses a default size.
What am I missing here?
Hello and thank you for contacting Infragistics. Before we dive into your attachment I wanted to bring to your attention that the XamDiagram has it's own built-in Toolbox (aka XamDiagramToolbox) that lets your users drag items to the diagram surface without having to jump through hoops to do this manually.
eg.
https://es.infragistics.com/help/wpf/xamdiagram-configuring-the-toolbox
Let me know if this helps at all or have any questions.
Hi, thanks.
Yes, I am aware that the toolbox exists, I'm using it and the diagram together to create some kind of designer and the user can save/load the diagram using xml (togther with many other properties which are not relevant to the bug).
I have created a very small example to show the issue itself, the toolbox is less relevant to the bug.