private void OnShowBooksGrid(object sender, ExecutedRoutedEventArgs e) { var booksGrid = new DataGridUC(); this.tabControl1.SelectedIndex = this.tabControl1.Items.Add(new TabItem { Header = "Books Grid", Content = booksGrid }); // _userControls.Add(new UIControlInfo { Title = "Books Grid", Content = booksGrid }); } }