public void RemoveItem() { if (TabItems.Count > 0) { TabItems.RemoveAt(TabItems.Count - 1); } }
public static void CloseTab(int index) { if (index > 0) { TabItems.RemoveAt(index); if (index == TabItems.Count) { SwitchTab(index - 1); } else { SwitchTab(index); } } }