private void AppBarButton_Click(object sender, RoutedEventArgs e) { var button = sender as AppBarButton; var msg = "TODO: open " + button.Label + " page"; switch (button.Label) { case "Menü": this.Frame.Navigate(typeof(FoodMenuPage)); return; case "Kedvencek": this.Frame.Navigate(typeof(RecipesPage), new RecipesPageViewModel() { Title = "Kedvencek", Recipes = AppCache.GetFavourites() }); return; case "Mi van itthon?": //TODO: break; } //TODO: remove this new Windows.UI.Popups.MessageDialog(msg).ShowAsync(); }