예제 #1
0
        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);
        }