BindableBase vs INotifyChanged

前端 未结 3 1151
遥遥无期
遥遥无期 2020-12-05 08:06

Does anyone know if BindableBase is still a viable or should we stick with INotifyChanged events? It seems like BindableBase has lost its luster quickly. Thanks for any in

3条回答
  •  醉酒成梦
    2020-12-05 08:55

    It is not a choice between these two.

    BindableBase implements INotifyPropertyChanged.

    So if you use BindableBase you will be using INotifyPropertyChanged.

    INotifyPropertyChanged is more or less mandatory when implementing MVVM using DataBinding.

    Whether to use BindableBase or an other implementation depends on preference and use of Prism.

提交回复
热议问题