Click here to Skip to main content
15,878,809 members
Articles / Mobile Apps
Tip/Trick

Pay Attention to SystemTray

Rate me:
Please Sign up or sign in to vote.
5.00/5 (6 votes)
2 Apr 2014CPOL 7.7K   6  
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.

C#
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Microsoft
Tunisia Tunisia
I'm a Software Engineer and MVP (Client Development). I like writing articles and developing open source software in C#, Windows Phone and Windows 8 applications droidcon.tn/speakers.php.
http://houssemdellai.net

Comments and Discussions

 
-- There are no messages in this forum --