Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Pay Attention to SystemTray

0.00/5 (No votes)
2 Apr 2014 1  
We'll see how SystemTray properties can help you design nifty apps

Introduction

Lots of mobile applications use LoadingWheel/ProgressBar/ProgressRing to tell users that it is doing some heavy processing or downloading data. Windows Phone SDK 7 and 8 provide a ready mechanism to do that through the SystemTray object.

Exploring SystemTray Properties

SystemTray can show a ProgressIindicator on top of the Windows Phone screen. In addition, SystemTray can show a text below the ProgressIindicator to give user more details about what is happening. That could be done by adding the following code where you are downloading data.

var progressIndicator = new ProgressIndicator
{
    IsVisible = true,
    IsIndeterminate = true,
    Text = "Downloading data..."
}; 
SystemTray.SetProgressIndicator(this, progressIndicator); 

Other properties like BackgroundColor, ForegroundColor and Opacity could be changed, as shown in the following image:

A good sample that uses the SystemTray well is the LinkedIn for Windows Phone, note in the following screenshot the ProgressIndicator and the text and time in different colors:

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here