Windows phone 8.1 是否可以强制Windows Phone 8.1应用程序全屏运行,隐藏通知栏(又称系统托盘)?

Windows phone 8.1 是否可以强制Windows Phone 8.1应用程序全屏运行,隐藏通知栏(又称系统托盘)?,windows-phone-8.1,Windows Phone 8.1,我不确定这里的术语是否正确,但我感兴趣的是隐藏在屏幕顶部的栏 我看到Windows Phone 8的示例概述了以下内容: xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" Shell:SystemTray.IsVisiable="False" (Or true to display the tray) Shell:SystemTray.BackgroundColor="Transparent"

我不确定这里的术语是否正确,但我感兴趣的是隐藏在屏幕顶部的栏

我看到Windows Phone 8的示例概述了以下内容:

xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
Shell:SystemTray.IsVisiable="False" (Or true to display the tray)
Shell:SystemTray.BackgroundColor="Transparent"
但这在8.1中不起作用


如何在Windows Phone 8.1中实现这一点?

我认为您可以尝试隐藏在App.xaml.cs中-例如,在激活窗口后:

Window.Current.Activate();
StatusBar status = StatusBar.GetForCurrentView();
status.HideAsync();

你也会发现类似的问题,有很好的参考资料。

这是一篇关于将其作为一种行为的好文章,这样它就可以重复使用并且很酷。