Jul 17, 2012 at 2:06 PM
Edited Jul 17, 2012 at 7:44 PM
I am not using data templates.
Tabitem1 in my shell.xaml is opening a View1 which is a tab control and has a region that points to view2. Multiple Views of view2 are being added to the TabControl in View1 using a Controller class.
In the Controller class it adds the view2 to the Tab control in view1.
The code in my View1 controller classs is as follows:
view2.View2ViewModel = _serviceLocator.GetInstance< View2ViewModel>();
view2.PatientViewModel.Model = p;
_regionManager.Regions[RegionNames . View2TabsRegion].Activate(view2);
In View2 in one of the Wpf grid I have another content control with regions that opens up view3. View3 has a tab control in which one of the tab items region is view4.
View3 calls another controller class with the following signature:
_eventAggregator = eventAggregator;
_serviceLocator = serviceLocator;
_regionManager = regionManager;
This is how i am Adding the RegistredViews
(viewEntry.Metadata.RegionName == this
view = viewEntry.Value;
So when i check teh _regionManager.regions it does not have the regions defined in View2 and all its child views.