maui
maui copied to clipboard
Stepper doesn't change increment value when being bound to a double in MVVM context (Windows)
Root cause
When the Stepper value is updated dynamically, the current increment value is not correctly passed to the PlatformView. This issue occurs because the Interval property, which controls the stepper's increment, is not mapped properly to the PlatformView. As a result, the expected behavior of incrementing the stepper value is not consistent.
Description of Change
The interface Interval has been renamed to Increment and is now mapped to the mapIncrement method. All references to Interval have also been renamed to Increment.
API changes
Renamed IStepper.Interval to IStepper.Increment
Issues Fixed
Fixes #20706
Validated the behaviour in the following platforms
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac
Output Screenshot
Before Changes
https://github.com/user-attachments/assets/17b99b70-6803-42d3-943e-bcd781329377
After Changes
https://github.com/user-attachments/assets/b053f0a5-e459-4a8e-835f-743a1a8cf7d0
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Hi @PureWeen , I have reviewed the issue and am currently working on a fix for the ChangeIncrementValue functionality.
Needs rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Could include an UITest after merge https://github.com/dotnet/maui/pull/25130
/rebase
#25130 has been merged
Can you try it out and add some tests?
Currently working on adding the requested test cases
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).