I'm trying my best to make it work. Basically I have a Silverlight application using a combination of MVVM / PRISM / Unity.
My shell consists of two regions: RootContent and RootMenu . My RegionManager.Regions is able to see these two areas perfectly, and the application works correctly.
The problem starts when one of my views inside RootContent opens a ChildWindow , it contains more than two regions, as shown below:
<ContentControl Region:RegionManager.RegionName="WOFSCustomerLookup" /> <ContentControl Region:RegionManager.RegionName="WOFSCustomerView" />
The ViewModel of this view, which has this XAML above, even inherits and is correctly resolved, the IRegionManager.Regions collection IRegionManager.Regions not contain these two new Regions above, only RootContent and RootMenu.
Additional Information
This is how My ChildWindow is called (it calls "View"):
ChildWindow editor = this.container.Resolve<WorkOrderFieldServiceEditor>(); editor.show();
And this is the constructor of my ViewModel model:
public WorkOrderFieldServiceViewModel(IUnityContainer container, IRegionManager regionManager) { this.container = container; this.regionManager = regionManager;
Did I miss something?
source share