mflair2000
mflair2000

Reputation: 315

MVVM Multiple User Interfaces

I have a WPF project build up nicely in MVVM, with some WCF webservices and now i'm at the point now where i want to add another user interface (either web or mobile).

The Views and ViewModels are currently encapsulated a WPF project. If i wanted to create a new web interface, what would be the best way to leverage the ViewModel logic in the web project?

Upvotes: 0

Views: 125

Answers (1)

Tim Destan
Tim Destan

Reputation: 2028

This is a good reason to keep your view models and views in separate projects, with the view project referencing the view model project. As is, you would have to have the web user interface project reference all the WPF code to get the view model code that you want. I don't know how feasible it is for you to refactor the WPF project into two projects, but I'd look into that If I were in your position.

Upvotes: 1

Related Questions