Vaccano
Vaccano

Reputation: 82301

Can Prism work with MVVM Light?

I need to use Prism. (I need composite UIs). But from a demo of MVVM Light it looks cool.

Can the two work together? Or is that a bad idea?

Can anyone show me an example of how to make them work together?

I want prism for Composite UI and MVVM Light for the MVVM side of things.

Upvotes: 3

Views: 1816

Answers (3)

Jimmy
Jimmy

Reputation: 3264

We are using PRISM in our project. Though PRISM can work with a complimentary frameworks like MVVM light and some of them are arguably "better" to what PRISM components, as a whole solution PRISM works very well. Also I believe it is simpler to use one technology in a project if there is no compelling reason to do otherwise.

One advantage of using PRISM is the tutorials and help to learn the technology is very good. Any new comer to the team should find it relatively easier to grasp the concepts.

Have a look at similar question MVVM Light + Unity or Prism?

Upvotes: 4

Rachel
Rachel

Reputation: 132548

Yes, they work together fine

They're both frameworks libraries, so you can pick and choose which pieces you want out of both. For example, I like to use Prism's NotificationObject (ViewModelBase), but MVVM Light's Messenger (event system for communication between view models).

Sometimes I'll even use both Prism's DelegateCommand and MVVM Light's RelayCommand in a project, even though they both are for the same thing (the main difference between the two is you have to manually raise the CanExecuteChanged() on DelegateCommand, whereess a RelayCommand does that automatically and sometimes more often then necessary)

Upvotes: 11

TheCodeKing
TheCodeKing

Reputation: 19220

Prism and MVVM light are both MVVM frameworks, so it makes sense to use one or the other.

Upvotes: 3

Related Questions