Пример #1
0
 private YearsView(DateTime start)
 {
     MainGrid   = YearsGrid.CreateInstance(start);
     YearTapped = new AsyncEvent <DateTime>();
     MainGrid.YearTapped.Handle(date => YearTapped.Raise(date));
     StartDate = start;
     Add(MainGrid);
 }
Пример #2
0
            public async Task <DateTime> PreviousPage()
            {
                var years  = YearsGrid.CreateInstance(StartDate);
                var result = years.PreviousPage();

                await NavigateTo(years, AnimationType.PreviousPage);

                return(result);
            }