Hi Damian,
Try this link
I read that link as well a couple days ago, but believe that it does not apply since the views being removed do not have nested regions. I also tried RegionBehaviors:ClearChildViewsRegionBehavior just to be sure and get the same result.
It's like this:
Let me know if you are able to grab the file from the link above.
Thanks,
Chris
Try this link
I read that link as well a couple days ago, but believe that it does not apply since the views being removed do not have nested regions. I also tried RegionBehaviors:ClearChildViewsRegionBehavior just to be sure and get the same result.
It's like this:
-
MainRegion (ContentControl)
-
MainContentRegion (TabControl loaded in MainRegion)
-
UserControl1 (tab item 1 - datacontext is viewmodel1)
-
ContentControl (viewmodel2 - property in viewmodel1, displayed via datatemplate)
-
ContentControl (viewmodel3 - property in viewmodel2, displayed via datatemplate)
-
ContentControl (viewmodel3 - property in viewmodel2, displayed via datatemplate)
-
ContentControl (viewmodel2 - property in viewmodel1, displayed via datatemplate)
-
UserControl1 (tab item 1 - datacontext is viewmodel1)
-
MainContentRegion (TabControl loaded in MainRegion)
Let me know if you are able to grab the file from the link above.
Thanks,
Chris