Beispiel #1
0
 /// <summary>
 /// Set Info panel with data
 /// </summary>
 /// <param name="info"></param>
 public void SetInfoPanel(CustomDailyInfos daily)
 {
     Humidity   = $"{daily.Humidity*100}%";
     Wind       = $"{daily.WindSpeed} {AppResources.WindUnit}";
     Pressure   = $"{daily.Pressure} {AppResources.PressureUnit}";
     Cloudiness = $"{daily.CloudCover*100}%";
 }
Beispiel #2
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;
            }
        }