I have been tasked with creating a range selector control that is basically a slider control with a textbox on each end so the user can manually type in values.
In a nutshell, I bound the value property of the thumbs to the text property of the textboxes. That worked well but since there is no way to set the increment of the slider (please fix this!!!) we were seeing a lot of unneeded decimal places in the textbox.
To fix that I removed the textbox and put in a xamnumericeditor so I cound use a mask to at least format the value returned by the slider. Unfortunately, binding to the text or value property of the xamnumericeditor causes the slider to be updated with each keystroke (vs the WPF textbox which causes the binding to update only after the textbox loses the focust).
To fix the binding issue, I set the binding to oneway and handled the lost focus event of the xamnumericedotr. Unfortuantely, setting the value of the xamnumericedit in the lostfocus event causes the binding to break.
So I'm out of things to try now. The goal is to be able to move the slider thumb and have the textbox update with the value, or to be able to type a value into the textbox and move the slider thumb.
Hi,
So to clarify, your goals are:
1) move slider thumbs, and this should immediately change the xamNumeric's value?
2) if you type some value in numericEditors, you want this change to be reflected after LostFocus?
Please correct me if I understand you wrong.
Thanks
Also, if possible I would really like a way to set the increment value of the slider. But for the moment I'll be happy with the two above.
Which version of our product you are using? It looks like - 11.1.1002 ?
When I first posted we were on 11.1.????? however due to some production issues we somehow got an engineering release (sorry I dont know the details) and we moved to 11.2.20112.2095. I noticed a slight difference in the template but the binding issue seems to be common to both.
If I understand both requirements - when I bind xamNumerics and Thumbs to SelectedMin\MaxValues, it works.
Another way is to bind xamNumeric's value to the thumb's value, again with LostFocus triggering.
Type into the textboxes. Input values below the min/ above the max.
I fixed it.