DocumentPane containing DocumentContent and DockableContent

Jun 22, 2009 at 2:59 PM


I am trying to mix the type of the managed contents of a DocumentPane, e.g. I would like to have in a DocumentPane one DocumentContent and several DockableContents. The reason for that is to have the possibility to drag some of the managed contents out of the document pane.

When I instanciate the managed content statically (in XAML), everything is fine. But I want to instanciate them dynamically! And the problem here is not the content itself, but the PaneTabPanel. The new DockableContent doesn't appear in the TabPanel. Only the statically instanciated items appears in the Tablist. The new instanciated item appears in the Document list, when you click on the button on the right side of the Pane. It is also possible to select it.

If I add dynamically only document contents, it works also fine, the TabPanel contains all the managed contents that are open.

Any idea that could help me?

Thanks. Nicolas