WPF: How to create a dynamic grid containing panels
===

I have a requirement to dynamically create a WPF Grid that has 3 columns and the number of rows will depend on the amount of panels I need. The first panel will be in grid location 0,0 the next in 0,1 -> 0,2 -> 1,0 -> 1,1 etc.. So if I needed 20 panels the grid would have 3 cols and 7 rows. And the Grid should fill the whole window

And each panel should have a heading and a progress bar on it. I guess I would have my panel as a seperate user control

I'm starting out with WPF so any help would be great

Thanks a lot