Ejemplo n.º 1
0
 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);
     });
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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();
            }
        }
Ejemplo n.º 4
0
 private void RemoteSystemListView_OnItemClick(object sender, ItemClickEventArgs e)
 {
     // The clicked item it is the new selected contact
     selectedSystem = e.ClickedItem as RemoteSystemInfo;
     SelectSystem(selectedSystem);
 }