Skip to content
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

Merged
merged 33 commits into from
Jan 24, 2025

Conversation

devanathan-vaithiyanathan
Copy link
Contributor

@devanathan-vaithiyanathan devanathan-vaithiyanathan commented Aug 23, 2024

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

  • Android
  • Windows
  • iOS
  • Mac

Output Screenshot

Before Changes

357055938-668993ec-532d-43b4-8b1a-47b98c8ec077.mp4

After Changes

357056346-be60183c-883c-4f72-a49c-06c9f3d6b489.mp4

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Aug 23, 2024
@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@devanathan-vaithiyanathan devanathan-vaithiyanathan marked this pull request as ready for review August 28, 2024 13:56
@devanathan-vaithiyanathan devanathan-vaithiyanathan requested a review from a team as a code owner August 28, 2024 13:56
@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChangeIncrementValue failing

@devanathan-vaithiyanathan
Copy link
Contributor Author

Hi @PureWeen ,
I have reviewed the issue and am currently working on a fix for the ChangeIncrementValue functionality.

@rmarinho
Copy link
Member

Needs rebase

@PureWeen PureWeen marked this pull request as draft October 4, 2024 22:09
@devanathan-vaithiyanathan devanathan-vaithiyanathan marked this pull request as ready for review October 8, 2024 13:22
@jsuarezruiz
Copy link
Contributor

/azp run

@jsuarezruiz
Copy link
Contributor

/rebase

@PureWeen PureWeen modified the milestones: .NET 9 SR3, .NET 9 SR4 Jan 14, 2025
mattleibow

This comment was marked as outdated.

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen dismissed their stale review January 16, 2025 19:34

Changes Applied

Copy link
Member

@mattleibow mattleibow left a 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.

Copy link
Member

@mattleibow mattleibow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very very nice!

@mattleibow
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@mattleibow mattleibow dismissed jsuarezruiz’s stale review January 23, 2025 13:57

Done! Changes made!

@mattleibow mattleibow enabled auto-merge (squash) January 23, 2025 13:59
@mattleibow mattleibow merged commit a200973 into dotnet:main Jan 24, 2025
104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-stepper Stepper community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Stepper doesn't change increment value when being bound to a double in MVVM context (Windows)
10 participants