コード例 #1
0
        protected override async Task OnAppearingAnimationEndAsync()
        {
            if (!IsAnimationEnabled)
            {
                return;
            }

            var translateLength = 400u;

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

            await Task.WhenAll(
                SaveButton.ScaleTo(1),
                SaveButton.FadeTo(1));
        }
コード例 #2
0
        protected override async Task OnAppearingAnimationEndAsync()
        {
            if (!IsAnimationEnabled)
            {
                return;
            }

            var translateLength = 400u;

            await Task.WhenAll(
                HabitEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                HabitEntry.FadeTo(1),
                DescriptionLabel.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                DescriptionLabel.FadeTo(1),
                DescriptionEditor.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                DescriptionEditor.FadeTo(1),
                StartPicker.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                StartPicker.FadeTo(1),
                EndPicker.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                EndPicker.FadeTo(1),
                AmountEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                AmountEntry.FadeTo(1),
                UnitEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                UnitEntry.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(
                EditButton.ScaleTo(1),
                EditButton.FadeTo(1),
                SaveButton.ScaleTo(1),
                SaveButton.FadeTo(1),
                DeleteButton.ScaleTo(1),
                DeleteButton.FadeTo(1)
                );
        }