The role of the model in MVVM

后端 未结 3 511
慢半拍i
慢半拍i 2020-12-28 12:46

I\'ve read a few articles regarding the role of the (Data)Model in the MVVM pattern. However, i still could not figure what goes into the model.

Should the model imp

3条回答
  •  萌比男神i
    2020-12-28 13:14

    The model implements your business logic. The view model decorates your business logic for the purpose of displaying it and interacting with it, in a view (UI of some form, eg. web, winform, CLI). So, no, I would not say that your model should implement INotifyPropertyChanged unless it would do so as part of your core business logic.

提交回复
热议问题