Implementing MVVM in WPF without using System.Windows.Input.ICommand

后端 未结 8 1607
醉梦人生
醉梦人生 2021-02-06 04:43

I\'m trying to implement a WPF application using MVVM (Model-View-ViewModel) pattern and I\'d like to have the View part in a separate assembly (an EXE) from the Model and ViewM

8条回答
  •  执念已碎
    2021-02-06 05:07

    I think you are separating your Project at wrong point. I think you should share your model and business logic classes only.

    VM is an adaptation of model to suit WPF Views. I would keep VM simple and do just that.

    I can't imagine forcing MVVM upon Winforms. OTOH having just model & bussiness logic, you can inject those directly into a Form if needed.

提交回复
热议问题