When selecting a specific date is not possible while entering data in weekly units #125
-
I'm trying to improve the speed by setting the Row to 1 and PageStartMode to FirstDayOfWeek. However, when entering information by week, if the month changes and the next month is included in the last week of the previous month, it becomes disabled and cannot be selected. Is it possible to enable the disabled part? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Yee, there are multiple ways to do this From C#:
From XAML:
|
Beta Was this translation helpful? Give feedback.
Yee, there are multiple ways to do this
From C#:
Inherit from the
Calendar
class and override the "IsDateTimeInvalid" method to returnfalse
. (By default, the "UpdateDays" method uses this method to set theIsInvalid
property of theCalendarDay
).Inherit from the
Calendar
class and override the "UpdateDay" method and set the Day'sIsInvalid
property tofalse
. Make sure to call the base method so it can still update the other values of the Day (such asIsCurrentMonth
) and to do it at the start otherwise your values will get overwritten.From XAML:
DayView
in theCalendarView
'sDayTemplate
property and set itsIsInvalid
property tofalse
instead of binding it to the underlyingC…