I don't want to let my users change the window size horizontal and vertical. The only way they should resize the window is diagonally.
Is there a way to do this?
Thanks in advance.
EDIT 1: Content scaling, maintaining proportions?
I don't want to let my users change the window size horizontal and vertical. The only way they should resize the window is diagonally.
Is there a way to do this?
Thanks in advance.
EDIT 1: Content scaling, maintaining proportions?
If you want an easy solution without hooking Windows API you could add an event handler to SizeChanged
and resize to the aspect ratio you like.
Downsides:
Window
has to render the layout twice, one might be unexpectedBut depending on your scenario this might be sufficient.