Skip to content

[Windows] Maui Stepper is not clamped to minimum or maximum internally #33274

Closed

Description

@OomJan

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.

Relevant log output

Activity

  1. added
    t/bug
    on Dec 23, 2025
  2. MihuBot commented on Dec 23, 2025

    @MihuBot

    I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):

  3. OomJan commented on Dec 23, 2025

    @OomJan
    ContributorAuthor

    I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):

    * [Stepper allows the value to increment past max when min, max, value set to 1. #28330](https://github.com/dotnet/maui/issues/28330)
    

    This is related to the exposed Value but not the internal value handled in the Windows implementation.

  4. added a commit that references this issue on Dec 23, 2025
  5. added a commit that references this issue on Dec 24, 2025
    31bad8b
  6. HarishKumarSF4517 commented on Dec 24, 2025

    @HarishKumarSF4517
    Contributor

    This issue has been validated in Visual Studio 18.1.1 with MAUI Version 10.0.20, 10.0.0 and 10.0.0-rc2. It can be reproduced on Windows platform.

  7. added
    s/verified
    s/triaged
    on Dec 24, 2025
  8. added a commit that references this issue on Dec 26, 2025
    79921f3
  9. added this to the .NET 10.0 SR3 milestone on Dec 29, 2025
  10. added a commit that references this issue on Dec 30, 2025
    69fb370
  11. added a commit that references this issue on Dec 30, 2025
    c03d834
  12. added 7 commits that reference this issue on Jan 5, 2026
    88de644
    22abc98
    6ea4522
    e7ae396
    4fe85d7
    4b98df5
    cfdbcef
  13. added a commit that references this issue on Jan 16, 2026
    5a7296c
  14. locked and limited conversation to collaborators on Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-stepperplatform/windowss/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions