Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
FinalizeOnboardingStepViewModel.cs
1using System.Threading.Tasks;
2using CommunityToolkit.Mvvm.ComponentModel;
3using CommunityToolkit.Mvvm.Input;
4using Microsoft.Maui.Controls.Shapes;
7
9{
11 {
12 public FinalizeOnboardingStepViewModel() : base(OnboardingStep.Finalize) { }
13
14 public override string Title => ServiceRef.Localizer[nameof(AppResources.OnboardingFinalizePageTitle)];
15
16 public override string Description => ServiceRef.Localizer[nameof(AppResources.SuccessTitle)];
17
18 public double CheckmarkBackgroundSize => 120.0;
19
20 public RoundRectangle CheckmarkBackgroundStroke => new RoundRectangle { CornerRadius = this.CheckmarkBackgroundSize / 2 };
21
22 public double CheckmarkIconSize => 60.0;
23
24 [RelayCommand]
25 private async Task Continue()
26 {
27 if (this.CoordinatorViewModel is not null)
28 await this.CoordinatorViewModel.GoToNextCommand.ExecuteAsync(null);
29 }
30 }
31}
A strongly-typed resource class, for looking up localized strings, etc.
static string OnboardingFinalizePageTitle
Looks up a localized string similar to Success!.
static string SuccessTitle
Looks up a localized string similar to Success.
Base class that references services in the app.
Definition: ServiceRef.cs:43
static IReportingStringLocalizer Localizer
Localization service
Definition: ServiceRef.cs:370
OnboardingStep
Unified onboarding steps matching the registration journey.