Beispiel #1
0
 private void NavigateToEditContactPage(StoredContactViewModel contact)
 {
     if (contact != null)
     {
         AppNavigationService.NavigateTo(
             new Uri(EditPage + "?id=" + contact.EMail, UriKind.Relative));
     }
 }
Beispiel #2
0
        /// <summary>
        /// Durch NavigateToDetailsCommand gerufene 'Execute'-Methode, die zur Details-
        /// seite einer Aktie navigiert
        /// </summary>
        /// <param name="aktieViewModel">Aktie zuderen Details navigiert werden soll.</param>
        public void NavigateToDetails(AktieViewModel aktieViewModel)
        {
            if (aktieViewModel == null)
            {
                return;
            }

            var uri = new Uri("/Views/AktieDetailsView.xaml?symbol=" +
                              aktieViewModel.Symbol, UriKind.Relative);

            AppNavigationService.NavigateTo(uri);
        }
Beispiel #3
0
        public void NavigateToDetails(CarForListViewModel car)
        {
            if (car != null)
            {
                var navigationUri =
                    new Uri("/Views/CarDetailsView.xaml?id="
                            + car.Id,
                            UriKind.Relative);

                AppNavigationService
                .NavigateTo(navigationUri);
            }
        }
Beispiel #4
0
        private void CreateCommands()
        {
            DescribeImageCommand = new AutoRelayCommand(async() => await DescribeImageAsync(), () => IsVisionServiceRegistered && !IsBusy)
                                   .DependsOn(() => IsBusy);

            SwapCameraCommand = new AutoRelayCommand(async() => await SwapCameraAsync(), () => !IsBusy)
                                .DependsOn(() => IsBusy);

            GotoSettingsCommand = new AutoRelayCommand(() => AppNavigationService.NavigateTo(Pages.SettingsPage.ToString()));

            GotoRecognizeTextCommand = new AutoRelayCommand(() => AppNavigationService.NavigateTo(Pages.RecognizeTextPage.ToString()), () => IsVisionServiceRegistered && !IsBusy)
                                       .DependsOn(() => IsBusy);

            HowToRegisterCommand = new AutoRelayCommand(() => launcherService.LaunchUriAsync(Constants.HowToRegisterUrl),
                                                        () => !IsVisionServiceRegistered).DependsOn(() => IsVisionServiceRegistered);

            OnCreateCommands();
        }
Beispiel #5
0
 private void CreateCommands()
 {
     GotoGitHubCommand        = new AutoRelayCommand(() => launcherService.LaunchUriAsync(Constants.GitHubProjectUrl));
     GotoUrlCommand           = new AutoRelayCommand <string>((url) => launcherService.LaunchUriAsync(url));
     GotoPrivacyPolicyCommand = new AutoRelayCommand(() => AppNavigationService.NavigateTo(Pages.PrivacyPolicyPage.ToString()));
 }
Beispiel #6
0
 private void CreateCommands()
 {
     RegisterCommand          = new AutoRelayCommand(() => launcherService.LaunchUriAsync(Constants.HowToRegisterUrl));
     GotoAboutCommand         = new AutoRelayCommand(() => AppNavigationService.NavigateTo(Pages.AboutPage.ToString()));
     GotoPrivacyPolicyCommand = new AutoRelayCommand(() => AppNavigationService.NavigateTo(Pages.PrivacyPolicyPage.ToString()));
 }