private void ListViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Book book = GetSelectedBook(); if (book == null) { return; } Page bookPage = new BookPage(book); NavigationService.Navigate(bookPage); }
private void ListViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Book book = ((ListViewItem)sender).Content as Book; if (book == null) { return; } Page bookPage = new BookPage(book); NavigationService.Navigate(bookPage); }