RegionManager for two shells

Topics: Prism v4 - WPF 4
Aug 29, 2011 at 2:13 PM


I'm implementing a class library using Prism MEF. I have two shells created in bootstrapper, but seems like only one gets returned by CreateShell() and RegionManager can only recognize the regions on this shell.

protected override DependencyObject CreateShell() { 
	_shellWindow = this.Container.GetExportedValue<ShellWindow>(); 
	_shellDockWindow = this.Container.GetExportedValue<ShellDockWindow>(); 
	return _shellWindow; 
Is it possble for RegionManager knows about the regions in both shells? 
Aug 29, 2011 at 5:38 PM

Hi Julie,

You might find this blog post useful as it deals with a similar scenario:

I hope you find this useful,

Damian Cherubini

Aug 29, 2011 at 7:29 PM

Thanks a lot, Damian! Just solved my problem.