Accesing Shell from Module

Jan 1, 2009 at 4:27 PM
I'm using the same shell in some different projects, and I have actually 2 problems:

- Each module (subsystem) must modify some items in the shell  - for instance the title -.  I created a method in the shell for that, but I can't found haw to get the shell from the module.

- Also, in my DirectoryModuleCatalog I have different modules, and I want to Load only the modules that corresponds to that subsystem (I'm passing the list to the bootstrapper). The modules have the StartupLoaded attribute set to false.  How can I Load only the modules I need (those of the list).

Thanks for your work and a very happy 2009.

Jan 1, 2009 at 5:04 PM

Why not create and register a service that any module can access to do this?



Jan 1, 2009 at 6:39 PM
Tnaks for your answer, Norm.  But I'm new to Prism - and Unity -.  I'm not sure how to create this service in the Shell project.

Also, I created an IShell interface with the methods to use, and I know the Shell IS registered in the container.  Why can't I access directly this interface and call the methods ?

Jan 5, 2009 at 2:26 PM

Hi Marcos


Perhaps you could find useful the following topics in the documentation about services:

·         How to: Register and Use Services

·         Container and Services


Please let me know if this helps.


Mariano Converti