1using System.ComponentModel;
16 this.InitializeComponent();
17 this.ContentPageModel = ViewModel;
20 Model.PropertyChanged += this.Vm_PropertyChanged;
23 private async
void Vm_PropertyChanged(
object? sender, PropertyChangedEventArgs e)
25 if (e.PropertyName == nameof(
AppsViewModel.ShowingComingSoonPopup))
29 this.ComingSoonPopup.CancelAnimations();
30 this.MainContent.CancelAnimations();
32 if (Vm.ShowingComingSoonPopup)
34 this.ComingSoonPopup.Opacity = 0;
35 this.ComingSoonPopup.Scale = 0.8;
36 this.ComingSoonPopup.IsVisible =
true;
38 this.MainContent.Opacity = 1;
40 _ = this.ComingSoonPopup.FadeToAsync(1, 500, Easing.CubicIn);
41 _ = this.ComingSoonPopup.ScaleToAsync(1, 500, Easing.CubicIn);
43 await this.MainContent.FadeToAsync(0.6, 500, Easing.CubicOut);
47 this.MainContent.Opacity = 0.6;
49 this.ComingSoonPopup.Opacity = 1;
50 this.ComingSoonPopup.Scale = 1;
51 this.ComingSoonPopup.IsVisible =
true;
53 _ = this.MainContent.FadeToAsync(1, 500, Easing.CubicIn);
55 _ = this.ComingSoonPopup.FadeToAsync(0, 500, Easing.CubicOut);
56 await this.ComingSoonPopup.ScaleToAsync(0.8, 500, Easing.CubicOut);
58 this.ComingSoonPopup.IsVisible =
false;
62 else if (e.PropertyName == nameof(AppsViewModel.BetaFeaturePressed))
64 if (this.BindingContext is AppsViewModel Vm)
66 this.BetaText.CancelAnimations();
68 if (Vm.BetaFeaturePressed)
70 this.BetaText.Scale = 1;
72 await this.BetaText.ScaleToAsync(1.05, 100, Easing.CubicOut);
76 this.BetaText.Scale = 1.05;
78 await this.BetaText.ScaleToAsync(1, 100, Easing.CubicIn);
Main page for viewing apps.
AppsPage(AppsViewModel ViewModel)
Creates a new instance of the AppsPage class.