Jan 4, 2011 at 2:26 PM
Edited Jan 4, 2011 at 2:27 PM
Thank you for sharing your findings on blendability for Prism. Another possibility for addressing your issue with the creation of regions in design time with the Region Manager would be to create an alternative Region Manager (a class that inherits from
IRegionManger) that could be similar to the regular Region Manager implementation, but with a different
OnSetRegionNameCallback method. Then, you could make your Design Time bootstrapper set your implementation of
IRegionManager to the shell. That way, you would have the regular region manager in run time, and the one you've modified in design time.
The notes on the MefRegionManager class could be helpful to that purpose:
"Exports the RegionManager using the Managed Extensibility Framework (MEF).
This allows the MefBootstrapper to provide this class as a default implementation.
If another implementation is found, this export will not be used."
Also, it could be helpful to know that the Run method on the
MefBootstrapper class obtains the Region Manager from the container and sets it to the shell:
I hope you find this helpful.
Guido Leandro Maliandi