I have a case with XamNumericRangeSlider and four thumbs, They are all added in XAML. I have binded slider MinValue and MaxValue to a properties in my ViewModel. The binding seems to break the thumbs. I have hard-coded the thumb values for testing purposes and they work fine if I hard-code also my MinValue and MaxValue. But now that I have them binded to ViewModel, all the thumbs are created to value 0.
Are there some rules that need to be followed that I don't know. I'm using the latest 11.2 version of the slider.
P.S. There is no help documentation available for the version 11.2? When it's coming?
I think the biggest problem with my thumbs was that when changing the values, the locked thumbs didn't allow the new values.
I managed to workaround the issue by clearing and generating the thumbs manually every time I need to change them. This solution works ok and is fine for me.
Let me know if you still are going to fix the issue. Maybe generate a new support request by my name? But it's fine for me if you decide not to do anything to this.
Great! I'll try to use your information to see if I can get it also working already. Looking forward to the January SR...
Hi anttisimonen,
I have spent some more time on that problem and i think i have found it finally. It seems that the reason about it is because in your sample you are setting the DataContext for the whole user control. The InteractionMode property of the first thumb is set to Lock and it influences the behaviour of the rest thumbs, that should be to the right, because they have larger values. However, in a sample that i am attaching i am using different way to bind the thumbs of the slider, by specifying source for the binding. As i said before that is a bug and i will contact the developer responsible for that, to fix it for you into the January SR! Hope that is useful for you now!
Regards,
Nikola
How did you get the similar use case working? I really need some kind of solution for this issue. I guess the possible fix didn't make it to the SR.
Even if I set the thumb's InteractionMode to Free, I experience problems. It's not totally the same than with Lock but not correct either. Can you reproduce this behavior in the sample I provided?