Exemple #1
0
        void MapDatesForMonth(DateTime firstDayOfMonth)
        {
            HeaderLbl.FadeTo(0, 4000, Easing.Linear);
            DatesGrid.FadeTo(0, 4000, Easing.Linear);
            Task.Delay(5000);
            Device.BeginInvokeOnMainThread(() =>
            {
                var dayOfWeek = (int)firstDayOfMonth.DayOfWeek;

                int offset = 0;
                //for start day is sunday
                if (dayOfWeek > 0)
                {
                    offset = dayOfWeek;
                }
                var loopStrtDate = firstDayOfMonth.AddDays(-offset);

                int count = 0;
                for (int r = 1; r < 7; r++)
                {
                    for (int c = 0; c < 7; c++)
                    {
                        dates[count++].Date = (loopStrtDate.Day).ToString();
                        loopStrtDate        = loopStrtDate.AddDays(+1);
                    }
                }
                Task.Delay(3000);
            });
            HeaderLbl.FadeTo(1, 3000, Easing.Linear);
            DatesGrid.FadeTo(1, 3000, Easing.Linear);
        }
Exemple #2
0
        private void animation()
        {
            HeaderLbl.FadeTo(0.5, 25);
            DatesGrid.FadeTo(0.5, 25);

            HeaderLbl.FadeTo(1, 25);
            DatesGrid.FadeTo(1, 25);
        }