You can't define the content of a window twice, but is there a way to overlay a grid on top of another grid?
In my specific case, I am creating a chess game and I want one grid to manage the pieces and their UI, and another grid to manage the black and white squares. I want to do it this way (as opposed to using one grid with different Z indexes) because during the game I want to add Opaque Rectangles on the squares that are valid moves. If I use a separate grid, I can clear the rectangles by doing myGrid.Children.Clear()
in order to clean the square-UI, but keep the pieces in place.
Another solution would be to clear all children of a specific Z Index. Is that possible?
Thanks for the help, I can post code if needed!