public void AddOrShowPane(ContentDocument pane) { if (!tabbedDocumentContainer1.ContainsDocument(pane)) { tabbedDocumentContainer1.AddDocument(pane); } tabbedDocumentContainer1.SetActiveDocument(pane); }