Esempio n. 1
0
 public void CloseAllTabs()
 {
     foreach (var tabItem in AllTabItemImpls.ToArray())
     {
         RemoveTabItem(tabItem);
     }
     NotifyIfEmtpy();
 }
Esempio n. 2
0
        public void CloseAllButActiveTab()
        {
            var activeTab = ActiveTabItemImpl;

            if (activeTab == null)
            {
                return;
            }
            foreach (var tabItem in AllTabItemImpls.ToArray())
            {
                if (tabItem != activeTab)
                {
                    RemoveTabItem(tabItem);
                }
            }
        }