-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
Under Windows the Maui Stepper is not clamped to minimum or maximum. The value is clamped in the binding but the logic internally increments when clicking increment when already at max.
So when at maximum and clicking increment more 1 time, then clicking decrement does not seem to do anything till you have clicked decrement at least 1 more time. The stepper internally counted up to 11 while the Value remained at 10.
So I clicker happy user would be confused when hitting increment and decrement in this scenario.
I am preparing a PR to address this issue.
Steps to Reproduce
Add an Entry and bind to a property of type Double. Add a Stepper and bind to the double property. Set the Stepper Maximum to 10 and Minimum to 0. Run the project and click the stepper increment button till the Value is at Maximum. The Stepper increment button is visually in disabled state. Click once more on increment and then click decrement. After clicking the decrement button nothing happens. Only clicking once more on decrement lowers the value again.
See the reproduction repository to verify.
Link to public reproduction project repository
https://github.com/OomJan/MauiStepperClamping
Version with bug
10.0.20
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No workaround.