コード例 #1
0
        protected override async void OnAppearingAnimationEnd()
        {
            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(200);
                await Task.WhenAll(
                    PasswordEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                    PasswordEntry.FadeTo(1));
            }))());


            await Task.WhenAll(
                CloseImage.FadeTo(1),
                CloseImage.ScaleTo(1, easing: Easing.SpringOut),
                CloseImage.RotateTo(0),
                LoginButton.ScaleTo(1),
                LoginButton.FadeTo(1));
        }
コード例 #2
0
        protected async override Task OnAppearingAnimationEnd()
        {
            var translateLength = 400u;

            await Task.WhenAll(
                Nombre.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                Apellido.FadeTo(1));

            await Task.WhenAll(
                UsernameEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                UsernameEntry.FadeTo(1),
                Profesion.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                Profesion.FadeTo(1),

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


            await Task.WhenAll(
                LoginButton.ScaleTo(1),
                LoginButton.FadeTo(1));
        }
コード例 #3
0
        /// <summary>
        /// Ons the login button tapped.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">E.</param>
        private async void OnLoginButtonTapped(object sender, EventArgs e)
        {
            await LoginButton.ScaleTo(0.95, 50, Easing.CubicOut);

            await LoginButton.ScaleTo(1, 50, Easing.CubicIn);

            //LoginButton.IsEnabled = false;
            NavigateToMap();
        }
コード例 #4
0
        protected override async Task OnAppearingAnimationEndAsync()
        {
            if (!IsAnimationEnabled)
            {
                return;
            }

            var translateLength = 400u;



            await Task.WhenAll(
                CloseImage.FadeTo(1),
                CloseImage.ScaleTo(1, easing: Easing.SpringOut),
                CloseImage.RotateTo(0),
                LoginButton.ScaleTo(1),
                LoginButton.FadeTo(1));
        }
コード例 #5
0
        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(150);
                await Task.WhenAll(
                    PasswordEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                    PasswordEntry.FadeTo(1)
                    );
            }))(),
                (new Func <Task>(async() =>
            {
                await Task.Delay(300);
                await Task.WhenAll(
                    RememberCheckBox.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                    RememberCheckBox.FadeTo(1)
                    );
            }))()
                );

            await Task.WhenAll(
                //CloseImage.FadeTo(1),
                //CloseImage.ScaleTo(1, easing: Easing.SpringOut),
                //CloseImage.RotateTo(0),
                LoginButton.ScaleTo(1),
                LoginButton.FadeTo(1),
                RegisterButton.ScaleTo(1),
                RegisterButton.FadeTo(1),
                OrEntry.ScaleTo(1),
                OrEntry.FadeTo(1)
                );

            LoginButton.IsEnabled = false;
        }