WPF列表框重复项 [英] WPF Listbox duplicate items

查看:111
本文介绍了WPF列表框重复项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在到处寻找解决方案,但最终承认失败.请有人帮我.

我有一个绑定到可观察集合的列表框.当在普通视图中打开窗口时,列表很好,并且集合中的每个项目都在其中.如果我随后使用IcollectionView对项目进行排序或分组,则可以正常工作,除非我得到三个 每一项和其中两项都会引发错误,而一项选择还可以.

我已经阅读了书籍,论坛和教程,而我尝试过的所有事情都引发了同样的问题.我正在使用Visual Express 2010 C#

任何帮助或建议将不胜感激.

谢谢

Jase_UK73

解决方案

Jase_UK73,

 

您可以发布该问题的副本吗?

 

亲切的问候,

马特


Hi ,

I have been looking everywhere for a solution but have finally admitted defeat. Please could someone help me. 

I have a Listbox bound to an observable collection .When the window opens in a normal view the list is fine and there is on of each item from my collection. If I then use IcollectionView to sort or group my items it works correctly except I get three of each item and two of them throw an error and one selects okay.

I have read books, forums and tutorials and everything I have tried throws the same problem. I am using Visual Express 2010 C#

any help or advice would be very much appreiciated.

Thank you

Jase_UK73

解决方案

Hi Jase_UK73,

 

Could you post up a repro of the problem? 

 

Warm regards,

Matt


这篇关于WPF列表框重复项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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