WPF - How can I implement an ObservableCollection<K,T> with a key (like a Dictionary)?

Greg picture Greg · Sep 29, 2010 · Viewed 24k times · Source

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".

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.

Thanks

Answer

ktutnik picture ktutnik · Sep 29, 2010

Someone already made it. I haven't try it yet but nothing to lose.