コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #4
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(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;
        }