如何把一个进度指示器 [英] How to wire up a progress indicator

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

问题描述

我有一个圆形的进度指示器。我想这个进度条添加到应用程序我工作,但不知道如何正确连接起来。

I have a circular progress indicator. I'd like to add this progress bar to an application I'm working on but don't know how to wire it up correctly.

在我的应用程序,我想打的进程按钮,并具有同时处理数据时显示进度条。当处理完成后,我想了进度条隐藏。

In my app, I want to hit the "Process" button and have the progress bar displayed while the data is being processed. When the processing is complete, I want the progress bar to hide.

我不希望发生加工后的进度栏被隐藏。我想在进度条的数据处理同时运行(如进度条应该工作)。我不记得的步骤,但在一个点上这个正在发生的事情。

I don't want the processing to occur AFTER the progress bar is hidden. I want the progress bar to run concurrently with the data processing (like a progress bar should work). I don't remember the steps but at one point this was happening.

什么是我需要做什么?你能推荐和展示如何实现一个进度条简单的例子?

What do I need to do? Can you recommend and simple examples that show how to implement a progress bar?

推荐答案

这是什么的 BackgroundWorker的类制成的。在文档中的例子显示一个长期运行的工作线程,报告进展情况并更新UI上的进度条。

This is what the BackgroundWorker class is made for. The example in the documentation shows a long running work thread, which reports progress and updates a progress bar on the UI.

这篇关于如何把一个进度指示器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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