How to Change the Background Color of the Status Bar or System Tray in Windows Phone 8 ?

Are you looking forward to change the background color of the status bar or system tray in Windows Phone 8 ? Below is a sample code snippet that demonstrates how to do it .

How to Change the Background Color of the Status Bar or System Tray in Windows Phone 8 ?

In the below code snippet , the background color of the SystemTray is set to Blue and the ForegroundColor of the SystemTray is set to “DarkGray”.

SystemTray.BackgroundColor = Colors.Blue;
SystemTray.ForegroundColor = Colors.DarkGray;
SystemTray.IsVisible = true;
How to Change the Background Color of the Status Bar or System Tray in Windows Phone 8 ?

1 Comment

  • Hey I’m trying to change status bar color for windows phone 8.1 javascript.
    First I enabled status bar with this piece of code in your default.js:

    var statusBar = Windows.UI.ViewManagement.StatusBar.getForCurrentView();
    statusBar.showAsync();

    Now I want to change the background color.

Leave Your Comment