예제 #1
0
        /// <summary>
        /// Starts animation
        /// </summary>
        /// <returns></returns>
        private async Task Animation(CustomDailyInfos item)
        {
            // call Animation
            if (Device.RuntimePlatform == Device.Android)
            {
                weatherInfoPanel.HasShadow = false;
            }
            weatherInfoPanel.RotationX = 0;
            await weatherInfoPanel.RotateXTo(180, 350, Easing.SpringIn);

            // Call viewmodel  for infopanel refresh
            _viewmodel.SetInfoPanel(item);

            await weatherInfoPanel.RotateXTo(360, 350, Easing.SpringOut);

            if (Device.RuntimePlatform == Device.Android)
            {
                weatherInfoPanel.HasShadow = true;
            }
        }