C#UWP隐藏软导航栏

问题描述:

我怎么能隐藏/编程折叠导航栏,我写手机窗10(万能Windows平台)应用程序的底部?处理顶部的StatusBar可以使用: Windows.UI.ViewManagement.StatusBar.GetForCurrentView()。HideAsync();C#UWP隐藏软导航栏

如果你想隐藏这两个,你可以使用全屏模式,而不是隐藏状态栏,然后导航栏会被隐藏起来了。

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

+0

这就行了!谢谢。这可以在OnLaunched事件中的App类中使用! 。Windows.UI.ViewManagement.ApplicationView.GetForCurrentView()TryEnterFullScreenMode(); –

+0

当心隐藏符号:)的^:'Windows.UI.ViewManagement.ApplicationView.GetForCurrentView()TryEnterFullScreenMode();' – daserge

+0

仍有在纵向模式一栏 – pollaris