I am currently working on a project that has a fairly standard decoupled structure:
Repositories → Services → View Models → Views
Repository and service levels use POCO objects. Presentation models are built from these objects and call service methods, and then passed to the views.
I have two foreground projects, one web application using MVC3 and one desktop application using WPF. View models are contained in a stand-alone class library, since most of them are the same for both applications. (There are a few exceptions, but they are addressed using specific virtual machines for each project)
I am currently on the ground work and the working part of MVC working. Now I look at the WPF side and think about using the MVVM light toolkit.
My question is, given that view models are shared between MVC and WPF applications, is the MVVM light toolkit (or any other toolbox) suitable? Is there any reason that the MVVM light toolkit should not be used with MVC3?
I searched the language for a long time and did not find anything specific. Thanks in advance for your thoughts.
source share