Hi,
Based on my understanding, you have to access the RegionManager attached to the ViewA view in order for this code to work. If you know in which region the ViewA is injected, a quick workaround for doing so (although not the best one) could be to obtain the ViewA from that region, then obtain the RegionManager from that view.
Basically, the RegionManagers are stored in their corresponding views as attached properties. Using the GetRegionManager static method of the RegionManager class you can obtain the RegionManager attached to a control. Hence, you could do something like this:
I hope this helps,
Damian Cherubini
http://blogs.southworks.net/dcherubini
Based on my understanding, you have to access the RegionManager attached to the ViewA view in order for this code to work. If you know in which region the ViewA is injected, a quick workaround for doing so (although not the best one) could be to obtain the ViewA from that region, then obtain the RegionManager from that view.
Basically, the RegionManagers are stored in their corresponding views as attached properties. Using the GetRegionManager static method of the RegionManager class you can obtain the RegionManager attached to a control. Hence, you could do something like this:
- Obtain the RegionA from the common RegionManager
- Obtain the ViewA from the RegionA , for example using the GetView method
-
Obtain the scoped RegionManager from the ViewA using the GetRegionManager method. This RegionManager should contain the TestPackGridRegion .
I hope this helps,
Damian Cherubini
http://blogs.southworks.net/dcherubini