Esempio n. 1
0
        private void nav_ItemInvoked(NavigationView sender, NavigationViewItemInvokedEventArgs args)
        {
            if (!String.IsNullOrEmpty(args.InvokedItem.ToString()))
            {
                switch (args.InvokedItem.ToString())
                {
                case "All Decks":
                    if (LibraryFrame.Content.GetType() != typeof(AllDeckPage))
                    {
                        LibraryFrame.Navigate(typeof(AllDeckPage));
                    }
                    break;

                case "Mastered":
                    if (LibraryFrame.Content.GetType() != typeof(MasteredDeckPage))
                    {
                        LibraryFrame.Navigate(typeof(MasteredDeckPage));
                    }
                    break;

                case "Book Marked":
                    if (LibraryFrame.Content.GetType() != typeof(MarkedDeckPage))
                    {
                        LibraryFrame.Navigate(typeof(MarkedDeckPage));
                    }
                    break;

                case "Recycle Bin":
                    if (LibraryFrame.Content.GetType() != typeof(DeletedDeckPage))
                    {
                        LibraryFrame.Navigate(typeof(DeletedDeckPage));
                    }
                    break;
                }
            }
        }
Esempio n. 2
0
 private void nav_Loaded(object sender, RoutedEventArgs e)
 {
     nav.SelectedItem = All;
     LibraryFrame.Navigate(typeof(AllDeckPage));
 }