Exemplo n.º 1
0
        private void ShowControls()
        {
            BackLabel.TranslateTo(0, 0, AnimationSpeed);
            EmailEntry.TranslateTo(0, 0, AnimationSpeed);
            PasswordEntry.TranslateTo(0, 0, AnimationSpeed);

            BackLabel.FadeTo(1, AnimationSpeed);
            EmailEntry.FadeTo(1, AnimationSpeed);
            PasswordEntry.FadeTo(1, AnimationSpeed);
        }
Exemplo n.º 2
0
        private void HideControls()
        {
            BackLabel.FadeTo(0, AnimationSpeed);
            EmailEntry.FadeTo(0, AnimationSpeed);
            PasswordEntry.FadeTo(0, AnimationSpeed);

            BackLabel.TranslateTo(0, 30, AnimationSpeed);
            EmailEntry.TranslateTo(0, -60, AnimationSpeed);
            PasswordEntry.TranslateTo(0, -60, AnimationSpeed);
        }
Exemplo n.º 3
0
        private void StartLayout()
        {
            BackLabel.FadeTo(0, 1);
            EmailEntry.FadeTo(0, 1);
            PasswordEntry.FadeTo(0, 1);

            BackLabel.TranslateTo(0, 30, 1);
            EmailEntry.TranslateTo(0, -60, 1);
            PasswordEntry.TranslateTo(0, -60, 1);
        }
        protected override async Task OnAppearingAnimationEndAsync()
        {
            if (!IsAnimationEnabled)
            {
                return;
            }

            var translateLength = 400u;

            await Task.WhenAll(
                UsernameEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                UsernameEntry.FadeTo(1),
                (new Func <Task>(async() =>
            {
                await Task.Delay(100);
                await Task.WhenAll(
                    EmailEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                    EmailEntry.FadeTo(1)
                    );
            }))(),
                (new Func <Task>(async() =>
            {
                await Task.Delay(100);
                await Task.WhenAll(
                    PasswordEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                    PasswordEntry.FadeTo(1)
                    );
            }))(),
                (new Func <Task>(async() =>
            {
                await Task.Delay(100);
                await Task.WhenAll(
                    PasswordConfirmEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                    PasswordConfirmEntry.FadeTo(1)
                    );
            }))(),
                (new Func <Task>(async() =>
            {
                await Task.Delay(100);
                await Task.WhenAll(
                    PhoneNumberEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                    PhoneNumberEntry.FadeTo(1)
                    );
            }))()
                );

            await Task.WhenAll(
                RegisterButton.ScaleTo(1),
                RegisterButton.FadeTo(1)
                );

            RegisterButton.IsEnabled = false;
        }
Exemplo n.º 5
0
 //Echange l'input de mail avec celui de password, et ensuite affiche le menu. (Animation)
 void ShowNext(object sender, EventArgs e)
 {
     if (EmailEntry.IsVisible)
     {
         EmailEntry.FadeTo(0, 300, Easing.SinIn);
         EmailEntry.IsVisible = false;
         PassEntry.IsVisible  = true;
         PassEntry.FadeTo(1, 300, Easing.SinOut);
         PassEntry.Focus();
     }
     else
     {
         Navigation.PushAsync(new MenuPage());
     }
 }