private void OnShowBooksList(object sender, ExecutedRoutedEventArgs e) { var booksUI = new BooksUC(); userControls.Add(new UIControlInfo { Title = "Books List", Content = booksUI }); }
private void OnShowBooks(object sender, RoutedEventArgs e) { var booksUI = new BooksUC(); this.tabControl1.SelectedIndex = this.tabControl1.Items.Add(new TabItem { Header = "Books", Content = booksUI }); }