【问题标题】:Is it possible to force Windows Phone 8.1 apps to run full screen, hiding the notification bar (aka System Tray)?是否可以强制 Windows Phone 8.1 应用程序全屏运行,隐藏通知栏(又名系统托盘)?
【发布时间】:2014-07-17 21:06:07
【问题描述】:

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

我看到 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 中实现这一点?

【问题讨论】:

标签: windows-phone-8.1


【解决方案1】:

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

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

您还会发现 here 有一些类似的问题,并提供了很好的参考。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-07-23
    • 2014-05-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多