public void CloseAllTabs() { foreach (var tabItem in AllTabItemImpls.ToArray()) { RemoveTabItem(tabItem); } NotifyIfEmtpy(); }
public void CloseAllButActiveTab() { var activeTab = ActiveTabItemImpl; if (activeTab == null) { return; } foreach (var tabItem in AllTabItemImpls.ToArray()) { if (tabItem != activeTab) { RemoveTabItem(tabItem); } } }