How do you show "busy" status in Windows Phone 7?
For some of the applications on my WP7, when there is some intenses processing going on it displays the "animated dots" along开发者_如何学Go the top of the screen.
I'm curious as to how to do that for my WP7 application ... any help would be appreciated.
Looks like you should use the Progress Control in Silverlight for WP7 toolkit
Use ProgressBar and set IsIndeterminate to true.
I like this implementation of the bar as it perfroms better: http://msdn.microsoft.com/en-us/library/gg442303%28v=vs.92%29.aspx
Several contributors mentioned problems in standard ProgressBar and they mostly suggested improved version called PerformanceProgressBar. A while ago I investigated various performance-related questions. Results related to the progress bar can be found here.
As a short summary:
- Standard progress bar has terrible perf impact as it runs in full speed in a privileged thread
- PerformanceProgressBar is a lot better, but not good enough. It is sufficient for cases when your app is basically waiting.
- The same conclusion concerns any animations using Storyboard.
- If you want to entertain the user while doing heavy computations, then the clearly best option is to organize your own animations. The techniques are discussed in the mentioned article.
精彩评论