John Kurtz John Kurtz - 9 days ago 6
C# Question

C# UWP Hide Soft Navigation Bar

How can I hide/collapse the navigation bar programmatically at the bottom of the windows 10 (univeral windows platform) application that I am writing for phones?

Handling the StatusBar at the top can be done with:
Windows.UI.ViewManagement.StatusBar.GetForCurrentView().HideAsync();

mjw mjw
Answer

If you want to hide both, you can use Fullscreen mode instead of hiding the status bar, then the navigation bar will be hidden, too.

Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TryEnterFullScreenMode()