Skip to content

Conversation

@corvinsz
Copy link
Member

fixes #3932

Visual breaking change!

The IsEnabled of all childs of the Calendar was already inherited correctly.
I added a visual state to grey out the MaterialDesignCalendarDayButton to indicate the disabled state.

I removed the rectangle (PART_DisabledVisual) which was previously overlaying the Calendar when it was disabled.

Notes

The MD2 & 3 specs do not specify looks for a disabled calendar, but I find the current behavior very unsuitable.
When no official spec is given, my next best bet is always to get inspired by other UI libraries.
In React MUI it's done like one would expect, simply grey out all of the Buttons of the Calendar.
https://mui.com/x/react-date-pickers/date-calendar/#form-props

Before

495171361-0a8af7c2-7cb9-4de4-ac83-26fe57c8aa81

After

495171386-41708ff0-f5ab-45b4-ba73-c42db1231ec3

@corvinsz corvinsz added the visual breaking change Items here have affected the visual look of controls. label Sep 29, 2025
@Keboo
Copy link
Member

Keboo commented Oct 3, 2025

One small thing, I think we want to also change the opacity on the year text as well.
image

@corvinsz
Copy link
Member Author

corvinsz commented Oct 3, 2025

Done!

@Keboo Keboo added this to the 5.3.0 milestone Oct 4, 2025
@Keboo Keboo merged commit bdde277 into MaterialDesignInXAML:master Oct 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

visual breaking change Items here have affected the visual look of controls.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

White rectangle when disabling Calendar

2 participants