public MainPage()
        {
            this.InitializeComponent();

            MenuItemsListbox.SelectedItem = ListboxMovies;
            BackButton.Visibility         = Visibility.Collapsed;
            TitleTextblock.Text           = "Movies";
            Movies = new ObservableCollection <Movie>();
            NavigationalFrame.Navigate(typeof(MoviesPage));
        }
        private async void SearchAutoSuggestBox_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
        {
            Movie         toDisplay = movieList.GetMovieByName(sender.Text);
            ContentDialog dialog    = new SearchQuery(toDisplay);
            var           result    = await dialog.ShowAsync();

            if (result == ContentDialogResult.Secondary)
            {
                if (String.IsNullOrEmpty(App.mediaPath))
                {
                    return;
                }
                NavigationalFrame.Navigate(typeof(Playing));
                MenuItemsListbox.SelectedItem = ListboxPlaying;
            }
        }
 private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (ListboxMovies.IsSelected)
     {
         BackButton.Visibility = Visibility.Collapsed;
         NavigationalFrame.Navigate(typeof(MoviesPage));
         TitleTextblock.Text = "Movies";
     }
     else if (ListboxSeries.IsSelected)
     {
         BackButton.Visibility = Visibility.Visible;
         NavigationalFrame.Navigate(typeof(SeriesPage));
         TitleTextblock.Text = "Series";
     }
     else if (ListboxExplore.IsSelected)
     {
         BackButton.Visibility = Visibility.Visible;
         NavigationalFrame.Navigate(typeof(ExplorePage));
         TitleTextblock.Text = "Explore";
     }
     else if (ListboxDetailedView.IsSelected)
     {
         BackButton.Visibility = Visibility.Visible;
         NavigationalFrame.Navigate(typeof(DetailedViewPage));
         TitleTextblock.Text = "Detailed view";
     }
     else if (ListboxPreferences.IsSelected)
     {
         BackButton.Visibility = Visibility.Visible;
         NavigationalFrame.Navigate(typeof(PreferencesPage));
         TitleTextblock.Text = "Preferences";
     }
     else
     {
         BackButton.Visibility = Visibility.Visible;
         NavigationalFrame.Navigate(typeof(Playing));
         TitleTextblock.Text = "Now Playing..";
     }
 }
 private void goBack()
 {
     NavigationalFrame.Navigate(typeof(MoviesPage));
     MenuItemsListbox.SelectedItem = ListboxMovies;
     BackButton.Visibility         = Visibility.Collapsed;
 }