protected override async void OnAppearing() { base.OnAppearing(); WalkDetails.RotationY = 180; await WalkDetails.RotateYTo(0, 1000, Easing.BounceOut); WalkDetails.AnchorX = 0.5; DifficultyLevel.AnchorY = (Math.Min(DifficultyLevel.Width, DifficultyLevel.Height) / 2) / DifficultyLevel.Height; await DifficultyLevel.RotateTo(360, 2000, Easing.BounceOut); }
// Method to initialise our View Model when the ContentPage appears protected override async void OnAppearing() { base.OnAppearing(); // Create a Simple Animation to rotate our Difficulty Level Image DifficultyLevel.AnchorY = (Math.Min(DifficultyLevel.Width, DifficultyLevel.Height) / 2) / DifficultyLevel.Height; await DifficultyLevel.RotateTo(360, 2000, Easing.BounceOut); // Create a SwingingEntrance Animation for our WalkDetails TableView WalkDetails.RotationY = 180; await WalkDetails.RotateYTo(0, 1000, Easing.BounceOut); WalkDetails.AnchorX = 0.5; }