Skip to content

Enhanced Stepper to Support Dynamic Increment Mapping#24396

Merged
mattleibow merged 33 commits intodotnet:mainfrom
devanathan-vaithiyanathan:Fix-20706
Jan 24, 2025
Merged

Enhanced Stepper to Support Dynamic Increment Mapping#24396
mattleibow merged 33 commits intodotnet:mainfrom
devanathan-vaithiyanathan:Fix-20706

Conversation

@devanathan-vaithiyanathan
Copy link
Copy Markdown
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
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

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
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@rmarinho
Copy link
Copy Markdown
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
Copy Markdown
Contributor

/azp run

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

This comment was marked as outdated.

@PureWeen
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

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

Changes Applied

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

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
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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