Skip to content

Add MinuteSelectionStep property to Clock#4047

Merged
Keboo merged 7 commits intoMaterialDesignInXAML:masterfrom
corvinsz:feat/ClockMinuteSelectionStep
May 1, 2026
Merged

Add MinuteSelectionStep property to Clock#4047
Keboo merged 7 commits intoMaterialDesignInXAML:masterfrom
corvinsz:feat/ClockMinuteSelectionStep

Conversation

@corvinsz
Copy link
Copy Markdown
Member

This adds a new dependency property called MinuteSelectionStep to the Clock control, which consumers can set to define the granularity of the selectable minutes.
I added MinuteSelectionStep_DefaultValue_IsOne as a regression test to ensure the default value behavior doesn’t unintentionally change. Feel free to remove it if you think it’s unnecessary.

grafik

Inspired by https://mudblazor.com/components/timepicker#minuteselectionstep

corvinsz and others added 6 commits April 28, 2026 21:01
adds a new property called MinuteSelectionStep to the Clock so consumers can control the interval/step of the minutes
refactor: move disabled clock button styling to XAML

This change consolidates the visual styling for disabled clock buttons into the XAML.
Moving the opacity setting from code-behind to the control's style improves the separation of concerns.
Additionally, updates button collection generation to use C# 12 collection expressions for improved conciseness.
```
@Keboo Keboo added this to the 5.3.2 milestone May 1, 2026
@Keboo Keboo added the release notes Items are likely to be highlighted in the release notes. label May 1, 2026
@Keboo Keboo enabled auto-merge (squash) May 1, 2026 05:43
…tests

These tests verified the enabled state and opacity of minute selection buttons based on the `MinuteSelectionStep` property. Following the refactor that moved disabled clock button styling to XAML, these tests are no longer relevant to code-behind logic.
@Keboo Keboo merged commit f87067f into MaterialDesignInXAML:master May 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes Items are likely to be highlighted in the release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants