Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6779647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:24:38+00:00 2026-05-26T16:24:38+00:00

This question is related to following thread. Prism RegionAdapter – Removing then Adding View

  • 0

This question is related to following thread.
Prism RegionAdapter – Removing then Adding View

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.

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.

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.

Here is the code I am using:

<ad:DockableContent ...
                    x:Name="viewRoot"
                    IsCloseable="True" HideOnClose="False"
                    Title="{Binding Title}">    
        <ContentControl Grid.Row="1" Content="{Binding View}"/>
    </Grid>
</ad:DockableContent>

It gets used inside this:

<ad:DockingManager x:Name="DockingManagerControl" Grid.Column="1">
                <ad:ResizingPanel x:Name="MainResizingPanel" ResizeWidth="*" ResizeHeight="*" Orientation="Horizontal">
                    <ad:DockablePane ad:ResizingPanel.ResizeWidth="0.25*" prism:RegionManager.RegionName="ProjectBrowserRegion"/>
                    <ad:ResizingPanel x:Name="PespectiveResizingPanel" ResizeWidth="0.75*" ResizeHeight="*" Orientation="Horizontal">
                        <ad:DocumentPane x:Name="DockablePaneControl"/>
                    </ad:ResizingPanel>
                </ad:ResizingPanel>
            </ad:DockingManager>

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:24:38+00:00Added an answer on May 26, 2026 at 4:24 pm

    Usually this occurs because you are trying to assign the same control to two different parents.

    I often see this issue with Styles, where a non-template property that contains Controls is set in a Style, such as ContentControl.Content, or DataGridColumn.Header

    For example, if your style sets ContentControl.Content, and you add two ContentControls to your Window, you’ll encounter this error because the style is trying to assign the same controls inside the Content section of both ContentControls. The fix is to set a template style, such as ContentControl.ContentTemplate instead of ContentControl.Content. I like to say this is like giving multiple people the same cookie to it – it just doesn’t work. You have to give them each the cookie cutter (template) instead so they can make their own.

    I actually see questions about this error so much that I wrote a blog post about it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is related to the this . I'm using the following to extract
This question is related to a previous post of mine Here . Basically, I
this question is related to this Multidimensional Associative Array in VB.NET getting the following
This question is related to performance. If I use a selector like the following
This question is related to this question. The following code compiles fine VC9 compiler
When creating a process in VB6 (related to this question:), I'm using the following
This question is related to (but perhaps not quite the same as): Does Django
This question is related to another question which I asked yesterday! List all links
[This question is related to but not the same as this one .] My
This question is related to this one , though I think I was a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.