Hi Prism Team,
My name is Debashish Gupta.
I am developing a Silverlight Application in Prism Framework. I wanted MVVM Pattern, Event Aggregator, and Dynamic XAP Loading etc.
I based my application on the Application Developed by John papa
I got into Some Problem like.
In the Screen Presentation Framework the ViewModel & View Constructor is called once and it never gets called if a user clicks the same screen again from the Menu It just gets Visible in the Region again.
this.ViewModel = Container.Resolve<IPortfolioCreateViewModel>();
this.View = Container.Resolve<PortfolioCreateView>();
this.View.DataContext = this.ViewModel;
Now I am not sure how can I send a data from One Module to another?
I wrote a separate Utils Class in the Infrastructure to share the data between the Modules.
I also cannot pass a ViewModel Object to the View’s constructor as I wanted to acess ViewModel methods from View Code Behind as well.
I needed some ways to resolve these things.
I tried to post this in the Silverlight Forum, they suggested to ask suggestions from prism team.
May be I am not able to use Event Aggregators Properly.