I am unsure how to structure a large program using PRISM Modules.
I have created the following layers:
Repository BusinessLayer -> IUnityContainer registering services UILayer -> MVVM implemented
If I have 3 modules, and I have an action in one of them, how do I trigger the view of another module to load?
I am currently using the EventAggregator but this requires the viewmodel to be somehow loaded already so it can subsribe to the event.
Ideally, I think, I would like to do something like the following:
IOrderService service = UnityContainer.Resolve(); service.PlaceOrder();
The order service is then responsable for loading the relevant UI features and registering it with the RegionManager.
Is that correct or have I got this completely wrong?
Thanks