ObservableCollection not noticing when Item in it changes (even with INotifyPropertyChanged)

前端 未结 18 2679
一生所求
一生所求 2020-11-22 02:06

Does anyone know why this code doesn\'t work:

public class CollectionViewModel : ViewModelBase {  
    public ObservableCollection Con         


        
18条回答
  •  不知归路
    2020-11-22 03:02

    ObservableCollection will not propagate individual item changes as CollectionChanged events. You will either need to subscribe to each event and forward it manually, or you can check out the BindingList[T] class, which will do this for you.

提交回复
热议问题