Esempio n. 1
0
 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);
     });
 }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
        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();
            }
        }
Esempio n. 4
0
 private void AppServiceListView_OnItemClick(object sender, ItemClickEventArgs e)
 {
     selectedAppService = e.ClickedItem as AppServiceInfo;
     SelectSystem(selectedAppService);
 }