private static void upperValueChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { RangeSlider rangeSlider = (RangeSlider)d; if (rangeSlider.LowerValue > rangeSlider.UpperValue) { rangeSlider.UpperValue = rangeSlider.LowerValue; } rangeSlider.UpperSlider.Value = rangeSlider.UpperValue; }
private static void maximumChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { RangeSlider rangeSlider = (RangeSlider)d; rangeSlider.LowerSlider.Maximum = rangeSlider.UpperSlider.Maximum = (double)e.NewValue; }