Ejemplo n.º 1
0
        protected async Task OnSelectDateInternal(SelectedDateResult result)
        {
            SelectedDate = result.Date;
            await OnSelectDate.InvokeAsync(result);

            await ValueChanged.InvokeAsync(result.Date);

            await RangeChanged.InvokeAsync(result.SelectedDateRange);
        }
Ejemplo n.º 2
0
        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();
        }