Click here to Skip to main content
11,478,174 members (69,865 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF MVVM PRISM
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 4:03am
Edited 8-Mar-13 4:17am
v4

1 solution

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

Solution 1

The best approach is to create an intermediate layer of Services
  Permalink  
Comments
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 Sergey Alexandrovich Kryukov 219
1 F-ES Sitecore 170
2 Sascha Lefèvre 170
3 Frankie-C 110
4 OriginalGriff 95
0 Sergey Alexandrovich Kryukov 7,675
1 OriginalGriff 7,321
2 Sascha Lefèvre 3,034
3 Maciej Los 2,491
4 Richard Deeming 2,325


Advertise | Privacy | Mobile
Web01 | 2.8.150520.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