Exemplo n.º 1
0
        private async Task MoveUpperStack()
        {
            if (i == 0)
            {
                MiddleStack.IsVisible = true;
                await UpperStack.TranslateTo(0, -130.0, 500, Easing.Linear);

                i++;
            }
            else
            {
                await UpperStack.TranslateTo(0, 0, 500, Easing.Linear);

                MiddleStack.IsVisible = false;
                i = 0;
            }
        }
Exemplo n.º 2
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();
            lastCountrySelected = 0;
            if (i != 0)
            {
                await UpperStack.TranslateTo(0, 0, 500, Easing.Linear);

                await LowerStack.TranslateTo(0, pageHeight - 250.0, 500, Easing.Linear);

                MiddleStack.IsVisible = false;
            }
            i = 0;
            await Task.Delay(2000);

            // Uncomment to start the arrow Animation
            //new Command(async () => await LooperAnimation()).Execute(null);
        }