protected Task OnSelectNextMonth() { return(OnNavigateDate.InvokeAsync(new NavigatedDateResult() { Date = NavigatedDate.AddMonths(1), FocusOnNavigatedDay = false })); }
private void OnSelectMonth(int newMonth) { // If header is clickable the calendars are overlayed, switch back to day picker when month is clicked if (OnHeaderSelect.HasDelegate) { OnHeaderSelect.InvokeAsync(true); } OnNavigateDate.InvokeAsync(new NavigatedDateResult() { Date = NavigatedDate.AddMonths(-1 * (NavigatedDate.Month - newMonth)), FocusOnNavigatedDay = true }); }
protected Task OnSelectNextYear() { return(OnNavigateDate.InvokeAsync(new NavigatedDateResult { Date = NavigatedDate.AddYears(+1), FocusOnNavigatedDay = false })); }