Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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();

like image 647
John Kurtz Avatar asked Jan 22 '16 21:01

John Kurtz


1 Answers

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()

like image 177
mjw Avatar answered Sep 28 '22 16:09

mjw