ObservableCollection PropertyChanged event

后端 未结 4 1125

OK so I want to subclass ObservableCollection to add a property to it. Unfortunately the PropertyChanged event is protected. Basically I want to subcla

4条回答
  •  耶瑟儿~
    2021-02-14 14:33

    The UI can and does get notified. This is a restriction JUST with ObservableCollection, which defines the PropertyChanged event as protected.

    FWIW, I think you're better off leaving ObservableCollection alone and just adding another property to your VM.

提交回复
热议问题