06-19-2014 09:17 AM
Hello,
Do you know how to programmatically change the minimum and the maximum value of a SliderDouble component?
I've tried using the property "Range" but Maximum and Minimum fields are in read-only.
Thank you in advance for your help.
Regards,
Cyrill
06-19-2014 01:58 PM
You can set the Range
property to a new value, instead of setting the sub-properties on the range. For example, to change just the minimum and keep maximum the same:
slider.Range = new Range<double>( -1.0, slider.Range.Maximum );
06-20-2014 01:57 AM
Works perfectly!
Thanks Paul