我正在开发的应用程序,目标WP7使用Windows 8 SDK,所以它也是兼容的WP8。
我面临的问题是720 p模拟器上的状态栏非常高。
下面是我使用的xaml:
<phone:PhoneApplicationPage ...
shell:SystemTray.BackgroundColor="{StaticResource HeaderBackgroundColor}"
shell:SystemTray.IsVisible="True"/>这是结果

如果我增加透明度,使状态栏更短,我会得到一个黑色的矩形。
<phone:PhoneApplicationPage ...
shell:SystemTray.BackgroundColor="{StaticResource HeaderBackgroundColor}"
shell:SystemTray.Opacity="0.99"
shell:SystemTray.IsVisible="True"/>

我的问题是:
有没有一种方法可以改变黑色空间的颜色(我想在没有目标WP8的情况下没有办法删除它)?可能在使用反射..。
发布于 2014-09-02 12:39:14
尝试在cs中以编程方式执行此操作,如下所示:
SystemTray.BackgroundColor = Colors.Blue;
SystemTray.ForegroundColor = Colors.DarkGray;
SystemTray.IsVisible = true; 要了解更多信息,您可以查看以下内容:
Change System Tray Color Windows Phone
希望能帮上忙!
发布于 2014-09-02 12:51:16
您可以更改SystemTray背景色
shell:SystemTray.IsVisible="True"
shell:SystemTray.BackgroundColor="Red"或者你可以隐藏SystemTray
shell:SystemTray.IsVisible="False"https://stackoverflow.com/questions/25623588
复制相似问题