title: Specified element is already the logical child of another element
body: <p>This question is related to following thread.
  <a href="https://stackoverflow.com/questions/4993705/prism-regionadapter-removing-then-adding-view/8051884#8051884">Prism RegionAdapter - Removing then Adding View</a></p>
  
  <p>My post to this thread was deleted my admin, saying it was answered and I need to start new thread. Please let me know if any of you have solved this issue.</p>
  
  <p>My deleted post was...
  How did you manage to get rid of "Specified element is already the logical child of another element. Disconnect it first." error with closing event. I tried the same thing, on closing I remove the dockablecontent from the documentpane. But it doesn't help I keep getting this error. Once I remove the view, and then later try to add it again the same way you are adding, I get this error.</p>
  
  <p>Please help me, I am not sure what am I missing. I have wasted so much of time trying to get around it but no luck yet.</p>
  
  <p>Here is the code I am using:</p>
  
  <pre><code>&lt;ad:DockableContent ...
                      x:Name="viewRoot"
                      IsCloseable="True" HideOnClose="False"
                      Title="{Binding Title}"&gt;    
          &lt;ContentControl Grid.Row="1" Content="{Binding View}"/&gt;
      &lt;/Grid&gt;
  &lt;/ad:DockableContent&gt;
  </code></pre>
  
  <p>It gets used inside this:</p>
  
  <pre><code>&lt;ad:DockingManager x:Name="DockingManagerControl" Grid.Column="1"&gt;
                  &lt;ad:ResizingPanel x:Name="MainResizingPanel" ResizeWidth="*" ResizeHeight="*" Orientation="Horizontal"&gt;
                      &lt;ad:DockablePane ad:ResizingPanel.ResizeWidth="0.25*" prism:RegionManager.RegionName="ProjectBrowserRegion"/&gt;
                      &lt;ad:ResizingPanel x:Name="PespectiveResizingPanel" ResizeWidth="0.75*" ResizeHeight="*" Orientation="Horizontal"&gt;
                          &lt;ad:DocumentPane x:Name="DockablePaneControl"/&gt;
                      &lt;/ad:ResizingPanel&gt;
                  &lt;/ad:ResizingPanel&gt;
              &lt;/ad:DockingManager&gt;
  </code></pre>
  
  <p>View content bindings are UI element which comes from separate dlls, So I don't have them as View/ViewModel pair. So I can't use ContentTemplate+DataContext way here. Things load nicely, but use can select/deselect these views. So if a view has been opens the view selection dialog again, then I clear all views (I remove it from DockablePaneControl Items.Clear()), and add the selected views again (DockablePaneControl Items.Add()), then I get this error.</p>