private async void PingPong_OnAppServiceConnected(object sender, AppServiceConnection e) { await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { var appService = new AppServiceInfo(e); AppServiceInfoCollection.Add(appService); }); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); SelectedAppService = e.Parameter as AppServiceInfo; // Register for hardware and software back request from the system SystemNavigationManager systemNavigationManager = SystemNavigationManager.GetForCurrentView(); systemNavigationManager.BackRequested += OnBackRequested; systemNavigationManager.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; }
private void SelectSystem(AppServiceInfo appService) { selectedAppService = appService; AppServiceDetailContentPresenter.Visibility = Visibility.Visible; DetailContentPresenter.Visibility = Visibility.Collapsed; if (PageSizeStatesGroup.CurrentState == NarrowState) { // Go to the details page and display the item Frame.Navigate(typeof(AppServiceDetailsPage), selectedAppService, new DrillInNavigationTransitionInfo()); } else { // Play a refresh animation when the user switches detail items. EnableContentTransitions(); } }
private void AppServiceListView_OnItemClick(object sender, ItemClickEventArgs e) { selectedAppService = e.ClickedItem as AppServiceInfo; SelectSystem(selectedAppService); }