I am using a Unity dependency container and microsoft Prism. I am injecting views into my docking panels, and this works fine. I have a button on Pane A that injects a new view into Pane B. Both of these panes are docked. If I undock ether of the panes and click the button in Pane A, the region manager cannot find the region anymore, and I get the following exception.
An unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in Microsoft.Practices.Prism.dll
Additional information: The region manager does not contain the MapInteractionPanel region.
This is the line that causes the exception:
IRegion region = regionManager.Regions["MapInteractionPanel"];
This works PERFECTLY fine if I leave both panes docked, so clearly the telerik docking is doing something when it undocks. Any ideas? Thanks.
An unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in Microsoft.Practices.Prism.dll
Additional information: The region manager does not contain the MapInteractionPanel region.
This is the line that causes the exception:
IRegion region = regionManager.Regions["MapInteractionPanel"];
This works PERFECTLY fine if I leave both panes docked, so clearly the telerik docking is doing something when it undocks. Any ideas? Thanks.