Windows phone 8 如何从Windows Phone 8应用程序中隐藏屏幕导航栏?

Windows phone 8 如何从Windows Phone 8应用程序中隐藏屏幕导航栏?,windows-phone-8,Windows Phone 8,我为WP 8开发了一个应用程序,需要隐藏屏幕上的导航栏。但是我不知道如何从WP 8应用程序中执行此操作。您的意思是隐藏系统托盘吗 如果是这样,您可以在Universal应用程序和Silverlight应用程序中执行此操作 在Windows phone通用应用程序中: 将此代码添加到app.xaml.cs或页面的代码后面 StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); // Hide t

我为WP 8开发了一个应用程序,需要隐藏屏幕上的导航栏。但是我不知道如何从WP 8应用程序中执行此操作。

您的意思是隐藏系统托盘吗

如果是这样,您可以在
Universal应用程序
Silverlight应用程序
中执行此操作

在Windows phone通用应用程序中:

将此代码添加到app.xaml.cs或页面的代码后面

StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();

// Hide the status bar
await statusBar.HideAsync();
在Windows phone silverlight应用程序中:

在您的xaml页面中添加以下内容:

Shell:SystemTray.IsVisible="False"
如果底部是虚拟导航栏,您可以尝试以下操作:


不幸的是,我指的是用于显示和处理系统按钮的屏幕导航栏:后退、windows和搜索。ApplicationView是windows Phone 8.1 XAML,但我需要能够从windows Phone 8应用程序执行同样的操作windows Phone 8不支持“软”导航栏,因此没有API。如果小心处理错误,可以尝试通过反射。