I'm new to Prism so need some help on navigation between views In my project I have just 4 views, so I have created all view in one module. I have created shell and bootstrapper. What I need to do is, I need to pass some data from one view to another(for eg, First view has list of employees, I select one employee and I will click Button to get the details of that employee). Currently I'm using ViewModel first approach`
_container.RegisterType<DashboardView>();
_container.RegisterType<PrepareRunView>();
_container.RegisterType<IDashboardViewViewModel, DashboardViewViewModel>();
_container.RegisterType<IPrepareRunViewViewModel, PrepareRunViewViewModel>();
_regionManager.RegisterViewWithRegion(RegionNames.MainRegion, typeof(DashboardView));
_regionManager.RegisterViewWithRegion(RegionNames.MainRegion, typeof(PrepareRunView));
- In this case how do I do navigation between the views and pass data?
- What do I need to specify in Module class Initialize function?
Moreover in module class when I register both the views for same region, I'm able to see both the views, so I need to activate and deactivate my views also.
Thanks in advance