protected async Task OnNavigateMonthDate(NavigatedDateResult result) { if (!result.FocusOnNavigatedDay) { NavigateMonthPickerDay(result.Date); focusOnUpdate = result.FocusOnNavigatedDay; } var monthPickerOnly = !ShowMonthPickerAsOverlay && !IsDayPickerVisible; if (monthPickerOnly) { await OnSelectDateInternal(new SelectedDateResult() { Date = result.Date }); } NavigateDayPickerDay(result.Date); GoTodayEnabled = NavigatedDayDate.Year != Today.Year || NavigatedDayDate.Month != Today.Month || NavigatedMonthDate.Year != Today.Year || NavigatedMonthDate.Month != Today.Month; //StateHasChanged(); //return Task.CompletedTask; }
protected Task OnNavigateDayDate(NavigatedDateResult result) { NavigateDayPickerDay(result.Date); focusOnUpdate = result.FocusOnNavigatedDay; GoTodayEnabled = NavigatedDayDate.Year != Today.Year || NavigatedDayDate.Month != Today.Month || NavigatedMonthDate.Year != Today.Year || NavigatedMonthDate.Month != Today.Month; return(Task.CompletedTask); }