I want to make a Button Tablet, which consists of 1 .. 10 Buttons.
Now I have a grid, which has rows and colums, lets say 2 columns, 5 rows, but this is not very dymamical.
I have some xml-source which specifies which and how much buttons are in that grid, how they should look like, row and column position.
How can I dynamically insert buttons at positions?
In the TabletViewModel I have a collection of ButtonViewModels and it is the DataContext for the TabletView (the Grid)
The ButtonViewModel holds the text, image-filename, row and column of the buttons and is the DataContext for one Button.
I thought of something like the itemsource Binding, but I can't figure out how to do this Binding with a grid and buttons. (Dynamic GridView?)
How can i do this? Any ideas appreciated!