public Home()
 {
     InitializeComponent();
     var booksViewModel = new BooksViewModel();
     booksViewModel.LoadCommand.Execute(null);
     BooksPivot.DataContext = booksViewModel;
 }
Exemple #2
0
 public AuthorViewModel()
 {
     _bookViewModel = new BooksViewModel();
     Authors = new ObservableCollection<Author>(_bookViewModel.Books.Select(b => b.Author).Distinct());
 }