How to change windows application size in Avalonia UI
Iam trying do downscale my windows application size to the size of my gui but cant find a way.
7 Replies
sorry for the many pictures i press cntrl + v to often
First off, what do you mean by "application size to the size of my gui"?
Is the white space around that view the main window to your application?
yea
Then you likely have hardcoded
Width
and Height
properties of some sort in your MainWindow.axaml
or in one of the components within do you mean this ?
Yes. I'd make sure none of the components you have (or panels / etc) in your view are not explicitly setting height.
Then, add a
SizeToContent
property to the window and have it scale by WidthAndHeight
thanks