private void NavigateToEditContactPage(StoredContactViewModel contact) { if (contact != null) { AppNavigationService.NavigateTo( new Uri(EditPage + "?id=" + contact.EMail, UriKind.Relative)); } }
/// <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); }
public void NavigateToDetails(CarForListViewModel car) { if (car != null) { var navigationUri = new Uri("/Views/CarDetailsView.xaml?id=" + car.Id, UriKind.Relative); AppNavigationService .NavigateTo(navigationUri); } }
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(); }
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())); }
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())); }