In my silverlight application, I have two controls
1. Control1
2. Control2
These two controls are to be displayed in the xamDockManager in a Tabbed Group pane.
Tabbed group pane is inside the SplitPane which is placed Left to the xamDockmanager.
I can add the control in any order, and user can also close any control before adding the second one. Now after I add the first control (Control1) to the xamDockmanager.
The code behind for MainPage is:
User has two options There are two cases
1. If user adds the Control2 to the tabbed group pane after adding the Control1, there is no issue.
2. If user closes the Control1 and then adds the Control2 using the same code, following error is displayed: "Element is already the child of another element". I am not sure why this error is displayed. Please help. Because in our case, user can close a control and add another control to the tabbed group.
I have also noticed that when the user closes the control1 before adding the control 2, xdockmanager doesnot have the splitpane in any of the four collections:
1. Panes
2. ClosedPanes
3. FloatingPanes
4. UnPinnedPanes
ClosedPanes collection has the ContentPane which is (Control1).
Where exactly the Splitpane gone. I guess error is actually of splitpane being already added. Problem is I am not able to find the SplitPane that I already added to the xDockManager control.
... wrong post ... sorry