ProgressBar 在 Windows 手机 7 中? [英] ProgressBar In Windows phone 7?

查看:28
本文介绍了ProgressBar 在 Windows 手机 7 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以提供有关如何在 Windows Phone 7 中使用进度条的代码示例.

Anyone can Give code samples for how to use progressbar in windows phone 7.

推荐答案

您可以使用 ProgressBar 类将进度条添加到您的应用.但是,如果您打算添加不确定的进度bar,使用 ProgressBar 会降低您的性能应用.这是因为 ProgressBar 的当前实现在 UI 线程上运行一个不确定的进度条,而不是合成线程.

You can use the ProgressBar class to add a progress bar to your application. However, if you plan on adding an indeterminate progress bar, using ProgressBar can decrease the performance of your application. This is because the current implementation of ProgressBar runs an indeterminate progress bar on the UI thread, rather than the compositor thread.

相反,您可以使用 CustomIndeterminateProgressBar 示例添加在合成器线程上运行的不确定进度条更好的性能.本主题描述了示例的工作原理,以及如何你可以用它来添加一个不确定的进度条到你的申请.

Instead, you can use the CustomIndeterminateProgressBar sample to add an indeterminate progress bar that runs on the compositor thread for better performance. This topic describes how the sample works, and how you can use it to add an indeterminate progress bar to your application.

如何:创建自定义的不确定进度条

这篇关于ProgressBar 在 Windows 手机 7 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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