I want to add a set of rectangles to the main window of my mvvm application. In my viewModel I\'ve got a collection of objects which I convert to System.Windows.Shapes.Recta
You can bind the collection of rectangles to an ItemControl and set its height, width and margin:
Just an idea to get you started...