WPF MVVM - Can a single PropertyChanged update all the Data bindings of a DataTemplate?

前端 未结 2 1315
醉梦人生
醉梦人生 2020-12-24 14:28

I have a ViewModel class which has large number of properties(Say 50). Once the data is set on to all the properties I need to update the UI. I know that the common solution

2条回答
  •  北海茫月
    2020-12-24 14:28

    I don't think this a problem worth trying to solve. That is, I think the solution here is to have the individual properties send property-changed notifications as they are set. If not, what are you going to do when an individual property (but not necessarily all fifty) changes?

提交回复
热议问题