private YearsView(DateTime start) { MainGrid = YearsGrid.CreateInstance(start); YearTapped = new AsyncEvent <DateTime>(); MainGrid.YearTapped.Handle(date => YearTapped.Raise(date)); StartDate = start; Add(MainGrid); }
public async Task <DateTime> PreviousPage() { var years = YearsGrid.CreateInstance(StartDate); var result = years.PreviousPage(); await NavigateTo(years, AnimationType.PreviousPage); return(result); }