private async void PingPong_OnRemoteDeviceAdded(object sender, RemoteSystem e) { await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { var system = new RemoteSystemInfo(e); RemoteSystemInfoCollection.Add(system); }); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); SelectedSystem = e.Parameter as RemoteSystemInfo; // Register for hardware and software back request from the system SystemNavigationManager systemNavigationManager = SystemNavigationManager.GetForCurrentView(); systemNavigationManager.BackRequested += OnBackRequested; systemNavigationManager.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; }
private void SelectSystem(RemoteSystemInfo system) { selectedSystem = system; DetailContentPresenter.Visibility = Visibility.Visible; AppServiceDetailContentPresenter.Visibility = Visibility.Collapsed; if (PageSizeStatesGroup.CurrentState == NarrowState) { // Go to the details page and display the item Frame.Navigate(typeof(DetailsPage), selectedSystem, new DrillInNavigationTransitionInfo()); } else { // Play a refresh animation when the user switches detail items. EnableContentTransitions(); } }
private void RemoteSystemListView_OnItemClick(object sender, ItemClickEventArgs e) { // The clicked item it is the new selected contact selectedSystem = e.ClickedItem as RemoteSystemInfo; SelectSystem(selectedSystem); }