-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhanced Stepper to Support Dynamic Increment Mapping #24396
Conversation
…le in MVVM context (Windows)
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ChangeIncrementValue failing
Hi @PureWeen , |
Needs rebase |
/azp run |
/rebase |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great. Just a note on a small improvement to the test code.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue20706.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very very nice!
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
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
Implemented the AppendToMapping mechanism for the StepperHandler to properly map the Increment property to the platform-specific views.Additionally, the MapInterval method was implemented across all supported platforms to ensure the UpdateIncrement method is called appropriately, enabling the platform views to reflect the dynamically updated increment value consistently.
Issues Fixed
Fixes #20706
Validated the behaviour in the following platforms
Output Screenshot
Before Changes
357055938-668993ec-532d-43b4-8b1a-47b98c8ec077.mp4
After Changes
357056346-be60183c-883c-4f72-a49c-06c9f3d6b489.mp4