public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { double val = System.Convert.ToDouble(value); return(PylonFloatSlider.PercentToSliderValue(val)); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { int s = System.Convert.ToInt32(value); return(PylonFloatSlider.SliderToPercentValue(s)); }