Skip to content

Slider is buggy depending on order of properties #18910

Closed

Description

@taori

Description

I am binding to a viewModel which has min, max, value as observable properties.
If i have the following syntax it will work if i initialize my VM with Value = 100:

<Slider Maximum="{x:Binding Path=Max}" 
     Minimum="{x:Binding Path=Min}"
     Value="{x:Binding Path=Value, Mode=TwoWay}"
     DragCompletedCommand="{x:Binding Path=UpdateCommand}" />

while this will first set my VM property from 100 to 1.

<Slider Value="{x:Binding Path=Value, Mode=TwoWay}"
     Maximum="{x:Binding Path=Max}" 
     Minimum="{x:Binding Path=Min}"
     DragCompletedCommand="{x:Binding Path=UpdateCommand}" />

Order of properties mattering is not something i ran into with WPF. Perhaps this is a bug. One way or another this should be documented because it is rather confusing.

Steps to Reproduce

see above.

Link to public reproduction project repository

No response

Version with bug

7.0.101

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

Yes, changing the order of properties. Even testing this was a wild guess, because i cannot recall bindings working like this. Though i might have done it "right" by accident in the past.

Relevant log output

No response

Activity

  1. added
    t/bug
    on Nov 20, 2023
  2. ghost added
    legacy-area-controls
    on Nov 21, 2023
  3. added
    s/verified
    s/triaged
    on Apr 29, 2024
  4. ninachen03 commented on Apr 29, 2024

    @ninachen03

    Verified this issue with Visual Studio 17.10.0 Preview 5 (8.0.21).I can repro this issue
    image

  5. removed
    legacy-area-controls
    on May 10, 2024
  6. added this to the Backlog milestone on Jun 6, 2024
  7. added a commit that references this issue on Dec 1, 2025
    c45c527
  8. added 4 commits that reference this issue on Dec 22, 2025
    334691d
    f67e73e
    fc542e9
    7499b16
  9. added a commit that references this issue on Dec 30, 2025
    eabed2b
  10. added 6 commits that reference this issue on Jan 5, 2026
    591d44a
    e3bbe0e
    47b4d9e
    daeb933
    5c184c0
    46cd9ce
  11. added a commit that references this issue on Jan 13, 2026
  12. added a commit that references this issue on Jan 16, 2026
    a1c7f01
  13. locked and limited conversation to collaborators on Feb 13, 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-sliderplatform/androids/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions