WPF Binding to IDictionary<int,MyType>.Values Doesn't Respond to Property Changes?

Posted by Phil Sandler on Stack Overflow See other posts from Stack Overflow or by Phil Sandler
Published on 2010-04-21T18:09:28Z Indexed on 2010/04/21 18:33 UTC
Read the original article Hit count: 206

Filed under:
|

I am binding a ListView a property that essentially wraps the Values collection (ICollection) on a generic dictionary.

When the values in the dictionary change, I call OnNotifyPropertyChanged(property). I don't see the updates on the screen, with no binding errors.

When I change the property getter to return the Linq extension dictionary.Values.ToList(), without changing the signature of the property (ICollection) it works with no problem.

Any reason why the Values collection bind and notify properly without projecting to an IList<>?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about databinding