Click here to Skip to main content
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 OriginalGriff 8,149
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2014
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