How to highlight particular days in Calendar? #13642
Answered
by
alessandrofrancesconi
alessandrofrancesconi
asked this question in
Q&A
-
I have a For example, currently I have this UI (today is 17th): While I need to re-color some cells depending on some logic: thanks for the help! |
Beta Was this translation helpful? Give feedback.
Answered by
alessandrofrancesconi
Nov 28, 2023
Replies: 2 comments 6 replies
-
Maybe a converter for DayButton.Background 🤔 |
Beta Was this translation helpful? Give feedback.
2 replies
-
We set bolded dates this way:
and the code behind:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With your inputs I managed to get what I needed. I use DateOnly[] to store the dates that I want to highlight, then I change the background color of the
CalendarDayButton
if it contains one of the stored dates. Thanks!