I’m creating a full-screen application in WPF and i need to choose how to actually resize the contents to use all the available space on the screen.
As far as i know, there are 2 solutions:
- Grids with stars-dimensions
- ViewBox wrapper
I think they both do the job but depending on the application one is better than the other: when should the grid approach be used? And when the viewbox method is acceptable?
A Grid is always going to give you more flexibility than a ViewBox, what if you want some components of your application to have fixed heights / widths? For example the panels at the side of visual studio do not change in size as the application window size changes.