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

Published on November 25, 2013 by abundantcode

Filed under Windows Phone

Last modified November 25, 2013

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 4355 times

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 ?

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

1 Comment

  1. Sarfaraz

    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.

    September 20, 2014 - 11:39 pm – Reply

Leave a Comment


x

You might be Interested in these Posts

How to delete user account from command line in Windows 10 ?

You can delete a user account from command line in Windows 10 using the net user command and specify...

How to add new user account from command line in Windows 10 ?

You can add a new user account in Windows 10 using command prompt using the net user command and pas...

How to open display settings from command line in Windows 10 ?

The display properties can be found in the settings app in Windows 10 which lets the users to config...