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