Hidden Xamarin Forms UWP Header Bar

I was wondering if anyone knows how to hide the title (gray) of the Xamarin Forms Universal Windows Platform application panel? I have seen some Android solutions floating around, but I cannot extrapolate the equivalent.

One of the Android solutions I've come across: RequestWindowFeature(WindowFeatures.NoTitle);

enter image description here

Any suggestions / ideas would be greatly appreciated, thanks!

+5
source share
2 answers

Decision:

 NavigationPage.SetHasNavigationBar(this, false); 

in code.

+4
source

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.

0
source

All Articles