Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        // 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;
        }