protected async Task OnSelectDateInternal(SelectedDateResult result) { SelectedDate = result.Date; await OnSelectDate.InvokeAsync(result); await ValueChanged.InvokeAsync(result.Date); await RangeChanged.InvokeAsync(result.SelectedDateRange); }
protected void OnSelectedDate(SelectedDateResult selectedDateResult) { //skip calendar props OnSelectedDate callback, not implemented through DatePicker SelectedDate = selectedDateResult.Date; FormattedDate = FormatDateInternal(selectedDateResult.Date); ErrorMessage = ""; OnSelectDate.InvokeAsync(selectedDateResult.Date); ValueChanged.InvokeAsync(selectedDateResult.Date); CalendarDismissed(); }