protected Task OnSelectNextMonth()
 {
     return(OnNavigateDate.InvokeAsync(new NavigatedDateResult()
     {
         Date = NavigatedDate.AddMonths(1), FocusOnNavigatedDay = false
     }));
 }
예제 #2
0
 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
     });
 }
예제 #3
0
 protected Task OnSelectNextYear()
 {
     return(OnNavigateDate.InvokeAsync(new NavigatedDateResult {
         Date = NavigatedDate.AddYears(+1), FocusOnNavigatedDay = false
     }));
 }