hI
I'm working with the XamNumericSlider, i bound the slider's value woth content property of a label.
The slider value range is from 0 to 100 but it assume also decimal instead I want the slider to assume only integer.
How can i do ?
Sorry for my weak english.
Thanks
Hi
solved using a IValueConverter ...
thanks
bye
isn't there already an example wich show the procedure??
more difficult for me
You would also have to make a thumb for the slider,
public class IntThumb : XamSliderThumb<int>
You could inherit a control from XamSimpleSliderBase<T> typed to int, that would probably be the easist way.
public class IntSlider : XamSimpleSliderBase<int>
{
}
Then you would need to override the following mehods and properties:
DoubleToValue
ValueToDouble
MaxValue
MinValue
GetLargeChangeValue
GetSmallChangeValue
You probalby dont need all those overrides, come to think of it, but if you do need to override anything those would probably be the most likely.