private async void jumpToAppBarButton_Click(object sender, RoutedEventArgs e) { var dialog = new JumpToComicDialog(); var result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { if (dialog.SelectedComic != 0) { currentComic = dialog.SelectedComic; updateComicPanels(); } } }