private void RemovePaneFromCollection(DockPane pane) { Debug.Assert(_panes.Contains(pane)); _panes.Remove(pane); if (_visiblePanes.Contains(pane)) { RemoveVisiblePane(pane); } if (_autoHidePanes.Contains(pane)) { RemoveAutoHidePane(pane); } }
private void BringToFront(DockPane pane) { if (_activatedPanes.Count > 0 && _activatedPanes[_activatedPanes.Count - 1] == pane) { return; } if (_activatedPanes.Contains(pane)) { _activatedPanes.Remove(pane); } _activatedPanes.Add(pane); }
private void AddPaneToCollection(DockPane pane) { Debug.Assert(!_panes.Contains(pane)); _panes.Insert(_panes.Count, pane); }