protected async override void OnAppearing() { SplashIcon.Opacity = 1; await SplashIcon.FadeTo(0, 800); Navigation.InsertPageBefore(new CalculatorPage(), Navigation.NavigationStack[0]); await Navigation.PopToRootAsync(false); }
private async void ScaleIcon() { // wait until the UI is present await Task.Delay(300); // animate the splash logo await SplashIcon.ScaleTo(0.5, 500, Easing.CubicInOut); var animationTasks = new[] { SplashIcon.ScaleTo(100.0, 1000, Easing.CubicInOut), SplashIcon.FadeTo(0, 700, Easing.CubicInOut) }; await Task.WhenAll(animationTasks); //// navigate to main page Navigation.InsertPageBefore(new MainPage(), Navigation.NavigationStack[0]); await Navigation.PopToRootAsync(false); }