在C#/WPF中的进度条中进行集合绑定 [英] Collection bind in progress-bar in C# / WPF

查看:101
本文介绍了在C#/WPF中的进度条中进行集合绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在进度条中收集绑定,并且此收集数据在多个进度条中显示.就像在图像中播种一样:

i want to collection bind in progress-bar and this collection data show in multiple progress-bar . Looks like sow in image :

如何在WPF/C#/MVVM中实现相同的GUI

How to implement this same GUI in WPF/C#/MVVM

 

谢谢

A.Acharya对我们的反馈在Windows Store中开发和推广您的应用程序,如果有帮助,请记住将其标记为答案,如果没有帮助,则将其取消标记.

A.Acharya Feedback to us Develop and promote your apps in Windows Store Please remember to mark the replies as answers if they help and unmark them if they provide no help.

推荐答案

到目前为止,您做了什么?

What do have done so far?

要绑定集合,您将使用从ItemsControl派生的控件.   ItemTemplate应该具有类似于Grid的内容,其中包含三个列定义,一个用于描述,一个用于progressBar,一个用于所使用的图标.

To bind a collection you would use a control that is derived from ItemsControl.  The ItemTemplate should have something like a Grid with three column definitions, one for the description, one for the progressBar and one for the icon that you are using.

用作 集合中项目的ViewModel应该具有与每个???的进度相呼应的属性? (您没有说自己正在监视什么).

The ViewModel which serves as  the items in the collection should have properties that will echo the progress of each ??? (you didn't say what you are monitoring).


这篇关于在C#/WPF中的进度条中进行集合绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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