Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the background color of Status Bar in WP8 silverlight?

Is there any way to change the Background Color of status bar in Windows Phone 8 silverlight application?

enter image description here

like image 611
Aneesh Avatar asked Apr 01 '13 09:04

Aneesh


1 Answers

It is quite easy to do that, but I'm not sure if it is reflected in the emulator (better try it on a real device).

Open the XAML of the page where you want to change the status bar and then change these properties the way you want them to be:

shell:SystemTray.IsVisible="True"
shell:SystemTray.BackgroundColor="#2440b2"
shell:SystemTray.ForegroundColor="White"

The *.IsVisible property ensures the status bar is visible, the *.BackgroundColor is setting the correct background of the status bar and finally the *.ForegroundColor changes the color of text and icons.

like image 192
Martin Zikmund Avatar answered Sep 21 '22 22:09

Martin Zikmund