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

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