-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Slider - (double) values issues #2685
Comments
@cjmurph Thanks for looking into this! |
@adisapir when you tested, was the bound property (RefreshIntervalSeconds) a double or a float (single)? I couldn't replicate with a double, only with a float. Changing the style to MaterialDesignSlider means you dont have the value label anymore. If you do see a label, its from the base controls AutoToolTip implementation. Fundamentally, applying the value of a floating point number to another floating point with different precision will yield unexpected results. The Slider control Value property comes from RangeBase and is a double. If you bind that to a float it will do... this. I think this is out of scope for this library to fix tbh. |
Sorry for the delay - I did bind it to a double. |
@Keboo / @cjmurph I'm still able to reproduce, even without binding the value. Here's the full xaml. Copy/Paste should reproduce:
|
@adisapir So the problem is not solved is it? |
Nope. Still there |
I don't believe this is an issue with this library and instead related to the Slide control directly. If you remove the Material Design Slider style and investigate the |
Th UI gets unresponsible if the Maximum is much higher than the TickFrequency! There should be a maximum of tixs that would be set to prevent this! (more ticks than horizontal pixels of the screen doesn't make sense.. |
Issue: when Slider tick frequency changes is not an int numbers (e.g. 0.1) some values are shown as "near value".
Image below shows the prob, XAML is for a quick repro.
Spotted on MaterialDesignThemes 4.5.0
Repro XAML:
The text was updated successfully, but these errors were encountered: