C# – How to maximise a Windows 10 Universal Application’s window to full screen when running on a desktop

cwin-universal-appwindows 10windows-8.1windows-runtime

When building a universal application using Windows 10 (or Windows 8.1 WinRT), is it possible to force the application's main window to maximise on launch? This is obviously natural behaviour for the application when running on a mobile device but not when running on the desktop.

This is certainly possible using WinForms:

But I haven't so far managed to find anything in the Microsoft Documentation about this for Windows 10.

Best Answer

An app can request to start as full screen by setting the ApplicationView.PreferredLaunchWindowingMode to ApplicationViewWindowingMode.FullScreen

Roberth discussed this along with other view and window size issues in his Build session Navigation and Windowing in Universal Windows Apps

Related Topic