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?
diagram issue.zip