Injecting shell GUI with lazy loading modules... incompatible?

Dec 13, 2008 at 9:04 PM

During IModule initialization I inject GUI elements like MenuItems, etc. into the Shell, and this works well.  My IModules retain their cohesion and isolation from one another and the Shell itself.  However all my modules are currently being loaded on startup - and depending on the warmth of the WPF runtime this can take longer than I'm happy with.

The solution is obviously to lazy-load all my modules.  But then I'll need to load the GUI elements from some other, new 'GUI elements' Module.  If I want to maintain the cohesion and not pollute a single module with knowledge of all other modules I'll need one per existing module.  Is this common?  Does this sound reasonable?

Jan 1, 2009 at 10:50 PM
Hi Neko,

I'm trying to get this behavieur without succes, can you explain how to do this?  Thanks in advance,