Ane*_*esh 8 c# windows-phone-7 windows-phone-8
有没有办法在Windows Phone 8 silverlight应用程序中更改状态栏的背景颜色?

Mar*_*und 10
这很容易做到,但我不确定它是否反映在模拟器中(最好在真实设备上试一试).
打开要更改状态栏的页面的XAML,然后按照您希望的方式更改这些属性:
shell:SystemTray.IsVisible="True"
shell:SystemTray.BackgroundColor="#2440b2"
shell:SystemTray.ForegroundColor="White"
Run Code Online (Sandbox Code Playgroud)
*.IsVisible属性确保状态栏可见,*.BackgroundColor设置状态栏的正确背景,最后*.ForegroundColor更改文本和图标的颜色.
查看该房产>> PhoneBackgroundColor
点击此链接了解更多详情>>
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769552%28v=vs.105%29.aspx