1using CommunityToolkit.Maui.Layouts;
16 this.InitializeComponent();
33 this.ContentPageModel = ViewModel;
35 StateContainer.SetCurrentState(this.GridWithAnimation, nameof(
ReviewStep.Photo));
37 ViewModel.PropertyChanged += this.ViewModel_PropertyChanged;
45 this.ContentPageModel.PropertyChanged -= this.ViewModel_PropertyChanged;
48 private async
void ViewModel_PropertyChanged(
object? sender, System.ComponentModel.PropertyChangedEventArgs e)
52 switch (e.PropertyName)
54 case nameof(PetitionPeerReviewViewModel.CurrentStep):
55 DateTime Start = DateTime.Now;
57 while (!StateContainer.GetCanStateChange(
this.GridWithAnimation) && DateTime.Now.Subtract(Start).TotalSeconds < 2)
58 await Task.Delay(100);
60 await StateContainer.ChangeStateWithAnimation(this.GridWithAnimation,
61 (this.ContentPageModel as PetitionPeerReviewViewModel)?.CurrentStep.ToString(),
69 this.GridWithAnimation.Scale = p / 5 + 0.8;
70 this.GridWithAnimation.Opacity = p;
71 }, 1, 0, Easing.CubicIn)
81 this.GridWithAnimation.Scale = p / 5 + 0.8;
82 this.GridWithAnimation.Opacity = p;
83 }, 0, 1, Easing.CubicInOut)
86 CancellationToken.None);
Base class that references services in the app.
static ILogService LogService
Log service.
static IUiService UiService
Service serializing and managing UI-related tasks.
A page to display when the user is asked to review an identity application.
PetitionPeerReviewPage()
Creates a new instance of the PetitionPeerReviewPage class.
The view model to bind to when displaying petitioning of an identity in a view or page.
void AddView(ReviewStep Step, BaseContentView View)
Adds a view to the wizard dialog.
ReviewStep
Steps in the peer-review process