This refers to the composite application guide for WPF or Prism.
I have one "MainRegion" in my shell. My various modules will be uploaded to this main region. I can fill out the list of available modules in the menu and select them for download. On the menu click I do:
var module = moduleEnumerator.GetModule(moduleName);
moduleLoader.Initialize(new[] { module });
For the first time, everything works fine, because the Initialize () methods of the modules are executed, but after the initialization of Module1, Module2 and Module3, nothing happens when I load Module2 again.
My question is: how can I activate the module on demand after it is initialized?
Thank you for your help!
source
share