Click here to Skip to main content
11,797,355 members (77,869 online)
Rate this: bad
Please Sign up or sign in to vote.
I am trying to identify the best appraoch for multiple view-models communication mechanism (eg: View-Model A & View Model B are loosely coupled. Now I want to pass one parameter value to my View Model B from A. I don't want to use EvenAggregator and the models are independent).

The Event Aggregator is one of the option available however i am trying to avoid that usage for normal communication because of the security (due to its Global behaviour).

I used a controller in my Application and can easily route the data between two view-models. Is the controller in MVVM & Prism 4.0 a good approach?

If not, then can some one suggest or direct me to the better approach?
Posted 8-Mar-13 3:03am
Edited 8-Mar-13 3:17am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The best approach is to create an intermediate layer of Services
Milan Mathew at 8-Mar-13 15:09pm
Can you please elaborate? I didn't get the point intermediate service and how that will communicate directly to the 2nd view model

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CPallini 475
1 OriginalGriff 375
2 Maciej Los 370
3 Abhinav S 359
4 KrunalRohit 291
0 OriginalGriff 2,092
1 Maciej Los 1,760
2 KrunalRohit 1,436
3 CPallini 1,245
4 ppolymorphe 893

Advertise | Privacy | Mobile
Web03 | 2.8.151002.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100