private void AddApplicationBar() { ApplicationBar.MenuItems.Clear(); ApplicationBar.Buttons.Clear(); var appBarSortYear = new ApplicationBarMenuItem(AppResources.Page_Movies_OrderBy_Year); appBarSortYear.Click += (sender, e) => SortMovies(YEAR); ApplicationBar.MenuItems.Add(appBarSortYear); var appBarSortName = new ApplicationBarMenuItem(AppResources.Page_Movies_OrderBy_Title); appBarSortName.Click += (sender, e) => SortMovies(NAME); ApplicationBar.MenuItems.Add(appBarSortName); var appBarRecent = new ApplicationBarMenuItem(AppResources.Page_Movies_Movies_RecentlyAdded); appBarRecent.Click += (sender, e) => NavigationService.Navigate(new Uri("/Movies/PageRecentlyAdded.xaml", UriKind.Relative)); ApplicationBar.MenuItems.Add(appBarRecent); PageRemote.SetRemoteApplicationBarButton(ApplicationBar, NavigationService); }
private void AddApplicationBar() { ApplicationBar.Buttons.Clear(); PageRemote.SetRemoteApplicationBarButton(ApplicationBar, NavigationService); }