I'm not really sure how to go about my problem. Not looking for complete code just help with in which direction i should go. Since its MVVM I don't want any codebehind... if possible...
From the db i get the size of the "grid" i should create, for example 2x3. Now i wish to place an "item" in this grid that takes up one or more spots.
I'm currently trying to do this with a ItemsControl that contains a grid (i want a grid because i want to use ShowGridLines="True") But how do I create a dynamic grid? Thought about using uniformgrid but that one doesn't have ShowGridLines...
Second problem (since i'm a mvvm noob) is selecting the a spot in the grid. The one you click will not be a problem. The problem is if the item you're trying to place takes up two spots. How do I know which spot is the one next to the one i'm clicking?
Any help is appreciated