Change Color of selected Date #48
-
Beta Was this translation helpful? Give feedback.
Answered by
ME-MarvinE
Jun 6, 2022
Replies: 1 comment 1 reply
-
Yes. Using the CalendarDayView control, you can change the BorderColor, BackgroundColor, TextColor, Command, and CommandParameter for each DayState. You would put the CalendarDayView in the To give a summary of each DayState using your image, the first day you point to is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kiriakos41
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. Using the CalendarDayView control, you can change the BorderColor, BackgroundColor, TextColor, Command, and CommandParameter for each DayState.
You would put the CalendarDayView in the
DayTemplate
property of the CalendarView. There is an example in the sample app (Forms example, MAUI example).To give a summary of each DayState using your image, the first day you point to is
Today
, the second isSelected
, all the others with black text color areCurrentMonth
, and the grey ones areOtherMonth
.