public void RemoveUserTab(TabItemViewModel vm) { if (UserItems.Contains(vm)) { UserItems.Remove(vm); if (UserItems.Count == 0) { SelectedTab = Owner.Start; } else { SelectedTab = UserItems.Last(); } } }