public void RemovePane(Pane pane) { if(!paneButtons.ContainsKey(pane)) return; var tabButton = paneButtons[pane]; RemovePage(tabButton); }