In some scenarios you might want to launch your brand new Windows 10 app with a specific size and/or you might want to set a minimum size in order to properly code the adaptive UI layer.
To launch your view with a specific size you first need to change the default startup mode:
then specify the size:
Instead, to set the smallest size allowed for a view you can simply call the following method:
This method accepts any size between the range 192x48 and 500x500.
If you want to apply these settings to your main view the best place where to set them is inApp.xaml.cs just before the Window.Current.Activate() method.
What about fullscreen mode?
If you want to start the app in full screen mode just set the following enum:
Othewise if you want to switch to full screen at runtime you need to use a different method:
It returns a boolean indicating if it succeeded or not, so you may programmatically change your code behavior based on the result.
Small note: the full screen mode is different from a maximized window because hides the title and the windows taskbar.