Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

BindingList does not propagate property information in ListChanged event for derived types

$
0
0

If I have BindingList(Of T) and T implements INotifyPropertyChanged, every time I raise T.PropertyChanged event with property name, BindingList converts it to PropertyDescriptor, and I get this descriptor in BindingList.ListChanged event. I could hardly see the point of doing this lookup every time, but anyway, this is not my point.

The problem arises when I have a derived type D, which adds new properties. When I raise the T.PropertyChanged, when a D's property is changed, ListChanged event cannot find the property descriptor in T, and happily delivers me null in ListChangedEventArgs.PropertyDescrtiptor.

Is there anything I'm failing to see to make this work?


Mikhail


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>