You can apply any of the following options to your main view. The best place to install them is in App.xaml.cs immediately before the Window.Current.Activate () method.
Note. Full screen mode is different from the maximum window, as it will hide the title and the Windows taskbar
Running the application in full screen mode
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.FullScreen;
To switch to full screen at runtime
ApplicationView.GetForCurrentView().TryEnterFullScreenMode();
Note. It returns a boolean indicating whether it was successful or not, so you can programmatically change the behavior of the code based on the result.
source share