Hello
To make a UWP (Universal Windows Platform) app run in full screen mode by default, you can set the ApplicationView.PreferredLaunchWindowingMode to ApplicationViewWindowingMode.FullScreen in the App.xaml.cs constructor. Here’s how you can do it:
public App()
{
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.FullScreen;
}
To toggle full screen mode, you can use the following code:
var view = ApplicationView.GetForCurrentView();
if (view.IsFullScreenMode)
{
view.ExitFullScreenMode();
}
else
{
view.TryEnterFullScreenMode();
}
Also, you can easily full screen almost any UWP apps in Windows 10 just by hitting Shift + Win + Enter after focusing a UWP app.
Please note that these codes are available only in Windows 10 universal app. Make sure to add ‘using Windows.UI.ViewManagement;’ to the top off your App.xaml.cs.
Remember, even without specifying any of the code above, when you open your app inside a Windows 10 tablet or a Windows 10 desktop with Tablet Mode enabled, the app will automatically maximize itself to full screen. As long as your app is available on Windows 10 Desktop devices, it’s recommended not to set it to full screen at start-up because UX wise it’s a lot easier for desktop users to work with windowed applications.