Exemple #1
0
 private void CacheDocPanel()
 {
     if (CachedDocumentTabPanel == null || !CachedDocumentTabPanel.HasParent(WpfMainWindow))
     {
         CachedDocumentTabPanel = WpfMainWindow.FindChild <DocumentTabPanel>();
     }
 }
Exemple #2
0
        public static void BringDocumentHeaderToView(this ManagedContent document)
        {
            if (!DocumentTabPanel.GetIsHeaderVisible(document))
            {
                DocumentPane parentPane = document.ContainerPane as DocumentPane;
                if (parentPane != null)
                {
                    parentPane.Items.Remove(document);
                    parentPane.Items.Insert(0, document);
                    document.Activate();
                }
            }

            ////document.IsSelected = true;
            ////Selector.SetIsSelected(document, true);
            //if (this.GetManager() != null)
            //    this.GetManager().ActiveContent = document;
            //document.SetAsActive();
        }