1using System.ComponentModel;
10 this.InitializeComponent();
11 this.ContentPageModel = ViewModel;
14 Model.PropertyChanged += this.Vm_PropertyChanged;
17 public override async Task OnAppearingAsync()
19 await base.OnAppearingAsync();
22 private async
void SwipeGestureRecognizer_Swiped(
object sender, SwipedEventArgs e)
27 await ViewModel.ViewId();
35 private async
void Vm_PropertyChanged(
object? sender, PropertyChangedEventArgs e)
37 if (e.PropertyName == nameof(
HomeViewModel.ShowingNoWalletPopup))
41 this.NoWalletPopup.CancelAnimations();
42 this.NoIDPopup.CancelAnimations();
44 if (Vm.ShowingNoWalletPopup)
46 this.NoWalletPopup.Opacity = 0;
47 this.NoWalletPopup.Scale = 0.8;
48 this.NoWalletPopup.IsVisible =
true;
50 this.NoIDPopup.Opacity = 1;
51 this.NoIDPopup.Scale = 1;
52 this.NoIDPopup.IsVisible = !Vm.HasPersonalIdentity;
54 _ = this.NoWalletPopup.FadeToAsync(1, 500, Easing.CubicIn);
55 _ = this.NoWalletPopup.ScaleToAsync(1, 500, Easing.CubicIn);
57 _ = this.NoIDPopup.FadeToAsync(0.8, 500, Easing.CubicOut);
58 await this.NoIDPopup.ScaleToAsync(0.8, 500, Easing.CubicOut);
60 this.NoIDPopup.IsVisible =
false;
64 this.NoIDPopup.Opacity = 0;
65 this.NoIDPopup.Scale = 0.8;
66 this.NoIDPopup.IsVisible = !Vm.HasPersonalIdentity;
68 this.NoWalletPopup.Opacity = 1;
69 this.NoWalletPopup.Scale = 1;
70 this.NoWalletPopup.IsVisible =
true;
72 _ = this.NoIDPopup.FadeToAsync(1, 1000, Easing.CubicIn);
73 _ = this.NoIDPopup.ScaleToAsync(1, 1000, Easing.CubicIn);
75 _ = this.NoWalletPopup.FadeToAsync(0, 1000, Easing.CubicOut);
76 await this.NoWalletPopup.ScaleToAsync(0.8, 1000, Easing.CubicOut);
78 this.NoWalletPopup.IsVisible =
false;
Base class that references services in the app.
static ILogService LogService
Log service.