Practical development tips for Windows Phone (19): Use progressindicator to display the progress

Source: Internet
Author: User

In the previous article, the development skills Windows Phone practical development skills (18): Using systemtray to display global message reminders describes how to use the new API progressindicator in mango, the role of isindeterminate is presented in two small demos. In fact, there is also a very practical attribute that can be used to display the state of being busy.

Have you noticed that you can log on to the current MSN on the SMS interface? The above status bar shows the progressindicator. "Getting your document from SkyDrive" in the office is also the progressindicator. It can be seen that progressindicator is a good way to display the current status.

We will rewrite the global globalindicator (with a new name ~~)

 

We can see that a "hijacking" of the navigating event is added, because you may be busy on a page, but you may not be busy on other pages,So it is very important to clear isbusy!

The following describes what is done in the isbusy attribute, and sets whether systemtray is visible and whether to display progress.

 

The following is the setting of the text attribute and setting the text displayed on the progress bar. Unfortunately, we can only set the plain text and text color.

 

Demo is displayed by a blog subscriber in the blog park. We initiate a request to the network to show that we are obtaining the subscription. After obtaining the message, the demo is removed. You can run the demo on your own.Source code.

 

After the data is obtained, the progress is removed.

 

SourceCodeDownload:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.