This project is read-only.

[Version 2.0] LayoutDocumentPaneControl

Jun 22, 2012 at 4:33 PM


I have an issue and i don't know if i do something wrong or it is a bug. 

There is a LayoutDocumentPane on my UserControl. Programatically i add a LayoutAnchorable to it. (documentPane.Children.Add(new LayoutAnchorable{...}))

Later i want to remove this LayoutAnchorable from LayoutDocumentPane and add its Content to a normal Grid. I remove it with RemoveChild function but when i try to add its content to the Grid it says the Content is a part of a different logical tree. And really if i check the GetParent with the LogicalTreeHelper, i get a LayoutDocumentPaneControl object. But this object's Items list is empty. But it has a protected LogicalChildren list which contains that element. 

Is it ok that the Items list is empty but the LogicalChildren isn't? How should i remove the LayoutAnchorable from the LayoutDocumentPane? Is there a way to remove this element from the logical tree?

Thank you!

Jun 24, 2012 at 5:27 PM
Edited Jun 24, 2012 at 5:27 PM

I'm having the same kind of problem, there seems to be no event triggering the removal