Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1735
XamNumericSlider Thumb template
posted

I'm trying to add my own template to the thumb for a XamNumericSlider, and have used the pattern described in the xamSlider->Thumb Styling sample in the Feature Browser. However, there are some issues:

1. The Feature Browser sample uses a XamNumericRangeSlider, and if I replace this with a XamNumericSlider I get a compile error like "Cannot add content to object of type 'Infragistics.Controls.Editors.XamNumericSlider' ". To solve this error I have to make my own subclass of XamNumericSlider and set its ContentProperty value to "Thumb". Why is XamNumericRangeSlider  and XamNumericSlider different in this case ?

2. When using my thumb template the slider's track fill starts at a value of half the thumb width and also extends beyond the slider's max value with the same amount. I get the same effect if I use the original XamNumericRangeSlider sample. How can I fix this ?

SliderTemplate.zip
Parents Reply Children
No Data