Thursday, September 22, 2011 9:38 AM
I am placing a region "JobTabRegion"(using a ContentControl) in the DataTemplate of a RadTabControl in my Shell. This "JobTabRegion" is bind to view named "MainJobView" which in turn has a RadTabControl and regions are marked inside the RadTabItem.Content (using a ContentControl) of each RadTabItem. One such region would be "JobRequestRegion" which is bind to a view named "JobRequestView". This "JobRequestView" has a RadExpander control and I am having a region marked (using a ContentControl) inside the RadExpander.Content called "ExpanderRegion" . I am using two buttons to switch the contents of the RadExpander. To do so, in the ViewModel of "JobRequestView", when i try to access the "ExpanderRegion" from the Region Manager instance, i get an error saying "The region manager does not contain the ExpanderRegion region."
I have read in an article that the regions marked inside a DataTemplate will not be available in the RegionCollection of the Region Manager. But i didn't get any proper solution. I am using PRISM v 4 andSilverlight 4.
Any help would be appreciated. Thanks in advance.
Friday, September 23, 2011 4:17 AM
As i know this problem haven't solved, However you can directly ask Prism Team from below link.
Please, Keep us update. If you solved the problem.
Friday, September 23, 2011 6:02 AM
Thanks for the reply. I will update once i get an answer to this.
Monday, October 10, 2011 3:44 PM
In this case you can create attach propertiy then use visualTreeHelper search from App.Current.RootVisual.