Skip to content

When selecting a specific date is not possible while entering data in weekly units #125

Closed Answered by ME-MarvinE
pi314267 asked this question in Q&A
Discussion options

You must be logged in to vote

Yee, there are multiple ways to do this

From C#:

  • Inherit from the Calendar class and override the "IsDateTimeInvalid" method to return false. (By default, the "UpdateDays" method uses this method to set the IsInvalid property of the CalendarDay).

  • Inherit from the Calendar class and override the "UpdateDay" method and set the Day's IsInvalid property to false. Make sure to call the base method so it can still update the other values of the Day (such as IsCurrentMonth) and to do it at the start otherwise your values will get overwritten.

From XAML:

  • Use a DayView in the CalendarView's DayTemplate property and set its IsInvalid property to false instead of binding it to the underlying C…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@pi314267
Comment options

@ME-MarvinE
Comment options

@pi314267
Comment options

@ME-MarvinE
Comment options

@pi314267
Comment options

Answer selected by pi314267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants