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: