Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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);
        }