What is your experience with abandoning MVVM for UserControl-based WPF architecture?

前端 未结 7 780
星月不相逢
星月不相逢 2021-01-04 13:11

We built an large application based on Composite Application Library and MVVM using Infragistics controls.

In orde

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 13:47

    Advocates of MVVM over state their case. They claim that the alternate to MVVM is necessarily spaghetti code. What Edward describes is still following a pattern, it's just not MVVM. The fact that Views bind to Models is similar to MVC. The code behind can be considered the controller.

    Clearly, he feels the results are better in terms of development effort AND maintainability. Since the latter is the only valid rationale for a design pattern, the case against his approach isn't clear.

    Saying "you don't understand MVVM" isn't really an argument against his approach. A pattern that is easier to understand is better than one that isn't.

提交回复
热议问题