title: Prism : Shell regions view change not reflecting in xaml view
body: <p>I am defining two regions in shell: MainRegion and ToggleRegion. The Toggle region contains a button on clicking on that button i want to change the region in Main Region. </p>
  
  <p>Here is my xaml code for registering regions in shell.</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="*" &gt;&lt;/RowDefinition&gt;
          &lt;RowDefinition Height="30"&gt;&lt;/RowDefinition&gt;
      &lt;/Grid.RowDefinitions&gt;
  
      &lt;ContentControl Grid.Row="0" Regions:RegionManager.RegionName="MainRegion"&gt;&lt;/ContentControl&gt;
      &lt;ContentControl Grid.Row="1" Regions:RegionManager.RegionName="ToggleRegion"&gt;&lt;/ContentControl&gt;
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p>My Bootstrapper add MainModule where I am injecting view in Region</p>
  
  <pre><code>  protected override IModuleCatalog CreateModuleCatalog()
      {
          var catalog = new ModuleCatalog();
          catalog.AddModule(typeof (MainModule));
                     return catalog;
      }
  </code></pre>
  
  <p>My MainModule class</p>
  
  <pre><code> public void Initialize()
      {
          regionManager.RegisterViewWithRegion("MainRegion", typeof(MainView));
          regionManager.RegisterViewWithRegion("ToggleRegion", typeof(ToggleView));
  
       }
  </code></pre>
  
  <p>On Running the application I can see MainView and ToggleView loaded in MainRegion and ToggleRegion. But when i click the button  in toggle region to change the view in Main region. Main region view is not changing.</p>
  
  <p>Code in my button click event</p>
  
  <pre><code>{
       IRegion region = regionManager.Regions["MainRegion"];
  
          var view = region.Views.SingleOrDefault();
          region.Remove(view);
          regionManager.RegisterViewWithRegion("MainRegion", typeof(ViewOnButtonClick));
          region.Activate(view);
  </code></pre>
  
  <p>}</p>
  
  <p>On debugging I can see region is removing MainView first then activating viewonbuttonclick but same is not reflecting in my xaml View. </p>
  
  <p>What am I missing ? </p>