Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        private static void maximumChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RangeSlider rangeSlider = (RangeSlider)d;

            rangeSlider.LowerSlider.Maximum = rangeSlider.UpperSlider.Maximum = (double)e.NewValue;
        }