Click here to Skip to main content
11,584,040 members (62,687 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 OriginalGriff 480
1 Sergey Alexandrovich Kryukov 285
2 virusstorm 268
3 Dave Kreskowiak 230
4 Richard Deeming 220
0 OriginalGriff 1,523
1 Sergey Alexandrovich Kryukov 995
2 Abhinav S 696
3 Dave Kreskowiak 621
4 Suvendu Shekhar Giri 568

Advertise | Privacy | Mobile
Web04 | 2.8.150603.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