This is similar to how-do-i-keep-aspect-ratio-on-scalable-scrollable-content-in-wpf, with the following differences:
- I'd like to avoid side-effects of the ViewBox - while the grid should resize when the container resizes, some of the grid content should keep their sizes (buttons for example).
- I don't need aspect ratios other than 1:1 (maybe some binding tricks can be used?)
- Code behind is Ok, though if possible I'd like to avoid creating yet another container