Pass Single Instance of Model to Multiple View Models in same Module for different views

Topics: Prism v4 - WPF 4
Aug 18, 2011 at 1:59 AM

I am working on a project using PRISM where I have left navigation implemented as Tree View and any click event happens raise event using event aggergation to Enrolment Module which has multiple view model for multiple views (like Wizard Applicaiton where you can go through many views to collect data). I want to have a common or shared or singleton model which can be passed across this view models and save at the end.... users can click on any link any navigation at any time and it should save data in to this singleton model expsosed through different view model. Do you have any samples which are doing something like this... or can you type up a quick one on how to do it? OR it is not possible to do it at all. I am following all patterns from your Pluralsight Video for PRISM so try to use that way....

Samir Barot

Developer
Aug 18, 2011 at 1:32 PM
Edited Aug 18, 2011 at 1:32 PM

Hi Samir,

You might find the following thread useful, as a smilar concern is treated:

What's a good pattern for reuseable lookup lists?

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi