Universal Windows 10 app - Starting in full screen by default

I have an application with 8.1 target windows, and when I run this application on Windows 10, it launches in a small window by default.

Since this is the main tablet app, I need it to work in full screen by default. Is it possible to install it somewhere in Visual Studio or in any application configuration?

+5
source share
2 answers

To start the application in full screen mode, try installing ApplicationView.PreferredLaunchWindowingMode already in the App.xaml.cs constructor

 public App() { ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.FullScreen; 

To have a button that toggles full screen, do

 var view = ApplicationView.GetForCurrentView(); if (view.IsFullScreenMode) { view.ExitFullScreenMode(); } else { view.TryEnterFullScreenMode(); } 

However, I need to add that even without specifying any of the above code, when you open the application in a Windows 10 tablet or Windows 10 desktop with tablet mode turned on, the application will automatically maximize itself to full screen.

While your application is available on Windows 10 desktop devices, I would recommend that you do not install it in full screen mode at startup, because UX will be much easier for desktop users to work with windowed applications.

+18
source

And in C ++:

 Windows::UI::ViewManagement::ApplicationView::PreferredLaunchWindowingMode = Windows::UI::ViewManagement::ApplicationViewWindowingMode::FullScreen; 
+2
source

All Articles