Region Name Problem

Aug 19, 2008 at 10:13 PM

I am creating a module that contains a set of Regions, and I need to load two instances of this module in the same Shell. When i try to load the second instance the following error occurs "View already exists in region." This is because the region names of the module that I am trying to load already exists, since the first module have already created them. So I will like to know if there is a way in which I could load this same module but with a different  name of regions, in order to avoid this problem.

Aug 20, 2008 at 1:12 AM
You'll have to show one (or both) of your views in a Scoped Region.   Details on this can be found in the documentation (Development Activities - How to: Show a View in a Scoped  Region).

I blog on the issue HERE - I show how to use two instances of the same UserControl (which has a region) in the same view.
Aug 20, 2008 at 3:05 AM
Hi, you can also check the UI Composition QuickStart we shipped in the June release. In that QuickStart you will find another example of how to use scoped regions.

Please let me know if this helps,

Ezequiel Jadib
Aug 20, 2008 at 12:33 PM

Thanks Bill and Ezequiel, that was what I needed.