I am trying to make a very simple UWP app smaller than default but i can't. How to do this? As you can see in the image the windows calculator app and the notepad is smaller in width than my app. I can't make it smaller???
I have looked on google and this site but can't find any answers. It should be simple??? If this has been answered please guide me to the answer. Thanks
You could use the ApplicationView.PreferredLaunchViewSize Property to set the size of your UWP APP.
Please refer to the following code:
public MainPage()
{
this.InitializeComponent();
//set minimized size
ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size(200, 200));
// change to smaller size
ApplicationView.PreferredLaunchViewSize = new Size(400, 400);
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;
}