每个页面上的进度条 [英] ProgressBar on Every Page

查看:31
本文介绍了每个页面上的进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果不是所有页面,我需要一个进度条来显示在大多数页面上.有没有什么好方法可以让进度条出现在所有页面上?

I need a progress bar to show up on most, if not all pages. Is there a good way to easily have the progress bar be on all pages?

我有一个基页类,我的所有页面都继承自它.我正在考虑将进度条动态添加到基类中的每个页面,但无法弄清楚如何做到这一点.我将能够让基本页面订阅一条消息 (MVVM Light) 并在我想要显示或隐藏进度条时发送一条消息.

I have a base page class that all my pages inherit from. I was thinking of just dynamically adding the progress bar to every page in the base class, but couldn't figure out how to do that. I would be able to just have the base page subscribe to a message (MVVM Light) and send a message when I want the progress bar to show or hide.

推荐答案

Josh,

查看 Jeff Wilcox 最近发表的这篇博文.他讨论了在他的应用程序中使用 PerformanceProgressBar 的单个实例的旧"方式(通过修改 RootFrame)和他的新方式(在 Mango 中).我不确定他的新方法是否适用于芒果之前的应用程序,但您可以查看一下.

Check out this recent blog post by Jeff Wilcox. He discusses is "old" way of using a single instance of a PerformanceProgressBar in his app (by modifying the RootFrame) and his new way (in Mango). I'm not sure if his new way would work in a pre-mango app, but you can check it out and see.

http://www.jeff.wilcox.name/2011/07/creating-a-global-progressindicator-experience-using-the-windows-phone-7-1-sdk-beta-2/

这篇关于每个页面上的进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆