public void UpdateActiveShelfTab(List<Book> updatedShelfCollection)
 {
     int activeDocumentIndex = this.BookShelf_Pane.SelectedContentIndex;
     LayoutDocument activeDocument = this.BookShelf_Pane.Children[activeDocumentIndex] as LayoutDocument;
     BookShelf tabShelf = new BookShelf(6);
     tabShelf.Books = updatedShelfCollection;
     activeDocument.Content = tabShelf;
 }
 public void AddShelfTab(string tabTitle, List<Book> shelfCollection)
 {
     LayoutDocument document = new LayoutDocument();
     document.Title = tabTitle;
     document.IsSelectedChanged += LayoutDocument_IsSelectedChanged;
     //adding some content to the tab
     BookShelf tabShelf = new BookShelf(6);
     tabShelf.Books = shelfCollection;
     document.Content = tabShelf;
     this.BookShelf_Pane.Children.Add(document);
     this.BookShelf_Pane.SelectedContentIndex = this.BookShelf_Pane.Children.Count-1;
 }