This project is read-only.

[Version 2.0] Reactivate closed LayoutDocumentPane?

Jul 24, 2012 at 2:00 PM
Edited Jul 24, 2012 at 2:02 PM

I am not sure if my concern has already been mentioned...

I'd like to add DocumentTabs in run-time. After I closed the last Tab and open a new one, it is displayed as expected.
But when I split two tabs into two LayoutDocumentPanes by drag and drop and close the first one where the tabs are added, then I dont get any new tabs. When debugging, the LayoutDocumentPane still exists, even its Children (my tabs) are added to it but it is not visible and the tabs don't appear - although IsVisible is true.
That Pane is also not listed in Layout.Hidden...

Does anyone have an idea how to "reactivate" this once closed Pane?

Thank you

Jul 24, 2012 at 2:06 PM

could you please post the code you use to add documents at runtime?

Jul 25, 2012 at 7:09 AM
Edited Jul 25, 2012 at 7:10 AM

Sorry, I missed this one:

var firstDocumentPane = dockManager.Layout.Descendents().OfType<LayoutDocumentPane>().FirstOrDefault();

Works perfectly now.