This relates to Composite Application Guidance for WPF, or Prism.
I have one "MainRegion" in my shell. My various modules will be loaded into this main region. I can populate a list of available modules in a menu and select them to load. On the click of the menu I do:
var module = moduleEnumerator.GetModule(moduleName);
moduleLoader.Initialize(new[] { module });
At the first time all works ok, because the Initialize() methods of the modules are executed, but after Module1, Module2 and Module3 are initialized, nothing happens when I click to load Module2 again.
My question: how can I activate a module on demand, after its initialize method has been executed?
Thank you for your help!