示例#1
0
        private async void Button_Clicked_1(object sender, EventArgs e)
        {
            RegisterPage page = new RegisterPage();
            await WrapperGrid.TranslateTo(-600, 0, 500, Easing.SinOut);

            await UI.Navigation.PushAsync(page, false);
        }
示例#2
0
 public ForgotPasswordPage()
 {
     InitializeComponent();
     NavigationPage.SetHasNavigationBar(this, false);
     BindingContext = vM = new ForgotPasswordPageViewModel();
     WrapperGrid.TranslateTo(600, 0, 0);
     vM.SetUI(this);
     passEntry.Name       = "Pass";
     userEntry.Name       = "User";
     validationEntry.Name = "Validation";
     rePassEntry.Name     = "RePass";
     thirdStack.TranslateTo(700, 0, 500, Easing.SinIn);
     thirdStack.IsVisible = false;
     secondStack.TranslateTo(700, 0, 500, Easing.SinIn);
     secondStack.IsVisible = false;
 }
示例#3
0
 public LoginPage()
 {
     InitializeComponent();
     UI = this;
     NavigationPage.SetHasNavigationBar(this, false);
     BindingContext = vM = new LoginPageViewModel();
     vM.SetUI(this);
     WrapperGrid.TranslateTo(600, 0, 0);
     userEntry.Name = "User";
     passEntry.Name = "Pass";
     turkish.GestureRecognizers.Add(new TapGestureRecognizer()
     {
         Command = new Command(() => vM.ChangeConfiguration(1))
     });
     english.GestureRecognizers.Add(new TapGestureRecognizer()
     {
         Command = new Command(() => vM.ChangeConfiguration(2))
     });
 }
 public RegisterPage()
 {
     InitializeComponent();
     NavigationPage.SetHasNavigationBar(this, false);
     BindingContext = vM = new RegisterPageViewModel();
     vM.SetUI(this);
     WrapperGrid.TranslateTo(600, 0, 0);
     secondStack.TranslateTo(700, 0, 500, Easing.CubicOut);
     secondStack.IsVisible       = false;
     passEntry.Name              = "Pass";
     rePassEntry.Name            = "RePass";
     nameEntry.Name              = "Name";
     phoneEntry.Name             = "Phone";
     EmailEntry.Focused         += (sender, e) => AnimateError(nameof(vM.Email), false);
     UsernameEntry.Focused      += (sender, e) => AnimateError(nameof(vM.Username), false);
     EmailEntry.ReturnCommand    = new Command(() => nameEntry.FocusEntry());
     UsernameEntry.ReturnCommand = new Command(() => passEntry.FocusEntry());
     LottieEmail.OnPlay         += (sender, e) => LottieEmail.IsVisible = true;
     LottieUser.OnPlay          += (sender, e) => LottieUser.IsVisible = true;
 }
示例#5
0
 protected override async void OnDisappearing()
 {
     base.OnDisappearing();
     await WrapperGrid.TranslateTo(-600, 0, 500, Easing.SinOut);
 }
示例#6
0
 protected override async void OnAppearing()
 {
     base.OnAppearing();
     await WrapperGrid.TranslateTo(0, 0, 500, Easing.SinIn);
 }