WPF - 我怎样才能实现一个ObservableCollection&LT; K,T&GT;用钥匙(如字典)? [英] WPF - How can I implement an ObservableCollection<K,T> with a key (like a Dictionary)?
本文介绍了WPF - 我怎样才能实现一个ObservableCollection&LT; K,T&GT;用钥匙(如字典)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用WPF一个ObservableCollection绑定,这工作得很好。我真正想要的那一刻是一本字典一样的,有一个关键的,我可以使用,所以有效地喜欢的ObservableCollection。
I have used an ObservableCollection with WPF for binding and this works well. What I really want at the moment is a Dictionary like one, that has a key that I can use, so effectively like "ObservableCollection".
您能否提供的code,它可以用来提供这样一个ObservableCollection?我们的目标是有这样结构的字典,我可以从WPF绑定。
Can you suggest the code that could be used to provide such an ObservableCollection? The goal is to have a Dictionary like structure that I can bind to from WPF.
感谢
推荐答案
的有人已经使它。我还没有尝试,不过也没什么可失去的。
Someone already made it. I haven't try it yet but nothing to lose.
这篇关于WPF - 我怎样才能实现一个ObservableCollection&LT; K,T&GT;用钥匙(如字典)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文