When to use a WPF Dependency Property versus INotifyPropertyChanged

后端 未结 5 1875
眼角桃花
眼角桃花 2020-12-08 09:40

Do folks have any guidance on when a simple .NET property that fires INotifyPropertyChanged.PropertyChanged is sufficient in a view model? Then when do you wan

5条回答
  •  春和景丽
    2020-12-08 10:13

    The main problem I see with INotifyPropertyChanged is if you viewmodel is complex containing many nested types it appears that you have to bubble the PropertyChanged event up through the hierarchy.

提交回复
热议问题