Gui-less module

Jan 8, 2009 at 2:00 PM

Hi All

Sometimes I want to add an infrastructure module that will be loaded on demand but will not have a UI, like ErrorHandling, logging, etc…..


I think that I might have read something about it before but I cannot find it now….  


Any ideas or guidelines ?


Many Thx



Jan 9, 2009 at 1:31 PM



Perhaps you could find useful the following article in the Composite Application Guidance for WPF documentation about loading modules on demand:

·         How to: Load Modules On Demand


If you want that your module does not show any view when the module is loaded, avoid adding/showing views in the Initialize method of your Module class.

For more information related to modules you can check the following article:

·         Module


Please let me know if this helps.


Mariano Converti

Jan 11, 2009 at 11:49 AM

Hi Mariano


I’ve looked again in these articles but could not find the answers there for my scenario…

I think that I haven’t explained my situation completely….

Except the Prism architecture I also have modules for infrastructure (Log, errhandler, save client data etc.) with events that I raise dynamically using the eventAggregator technique.

So, even if their GUI is 1X1 pixel with no content I need to “put” it in some region…

If I remove these lines in the initialization of my module


var _ModuleErrHandler_View1 = Container.Resolve<ClientData_View1>();



The event does not fire….


I do not even know if this is possible in this way of work….





Jan 11, 2009 at 12:24 PM

Oaaa…. Maybe you ment to remove this line…


this.Container.RegisterType<IClientData_View1, ClientData_View1>();


Because, If I did not missed anything the UI is gone and events are working...


Am I on the right track ??