I have a view, that when loaded contains a toolbar at the top, and two regions underneath.
I am currently using a grid, so:
- row 0 contains the toolbar
- row 1 contains region1 and
- row 2 contains region2.
The toolbar has a toggle button, which when clicked, completely hides region1, and shows region 2, and visa-versa.
What is the best way to achieve this?
I have tried binding the 2 rows heights to get altered on the toggle, but the space is not filled correctly. VerticalAlignment="Stretch"
and HorizontalAlignment="Stretch"
are both used.
I have also tried enabling and disabling the itemcontrol hosting the region, but that doesn't seem to work at all.
Any pointers as to what I have done are much appreciated! :)