Esempio n. 1
0
 private async Task OnHeaderKeyDownInternal(KeyboardEventArgs keyboardEventArgs)
 {
     if (keyboardEventArgs.Key == "Enter" || keyboardEventArgs.Key == " ")
     {
         await OnHeaderSelect.InvokeAsync(true);
     }
 }
 protected Task OnHeaderKeyDownInternal(KeyboardEventArgs keyboardEventArgs)
 {
     if (keyboardEventArgs.Key == "Enter" || keyboardEventArgs.Key == " ")
     {
         OnHeaderSelect.InvokeAsync(true);
     }
     return(Task.CompletedTask);
 }
Esempio n. 3
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
     });
 }
Esempio n. 4
0
 protected Task OnHeaderSelectInternal()
 {
     if (!YearPickerHidden)
     {
         focusOnUpdate       = true;
         IsYearPickerVisible = true;
     }
     else if (OnHeaderSelect.HasDelegate)
     {
         return(OnHeaderSelect.InvokeAsync(true));
     }
     return(Task.CompletedTask);
 }
 protected Task OnHeaderSelectInternal(MouseEventArgs mouseEventArgs)
 {
     OnHeaderSelect.InvokeAsync(true);
     return(Task.CompletedTask);
 }