Click here to Skip to main content
12,405,543 members (67,742 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3.8K views
6 bookmarked
Posted

Pay Attention to SystemTray

, 2 Apr 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Houssem_Dellai
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

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 2 Apr 2014
Article Copyright 2014 by Houssem_Dellai
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid