コード例 #1
0
        public static void OnTooltipDisplayChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RangeSlider rs = (RangeSlider)d;

            rs.LowerSlider.AutoToolTipPlacement = (AutoToolTipPlacement)e.NewValue;
            rs.UpperSlider.AutoToolTipPlacement = (AutoToolTipPlacement)e.NewValue;
        }
コード例 #2
0
        public static void OnMaximumChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RangeSlider rangeSlider = (RangeSlider)d;

            rangeSlider.LowerSlider.Maximum = (double)e.NewValue;
            rangeSlider.UpperSlider.Maximum = (double)e.NewValue;
        }
コード例 #3
0
        public static void OnDateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RangeSlider rangeSlider = (RangeSlider)d;

            rangeSlider.LowerSlider.Date = (DateTime)e.NewValue;
            rangeSlider.UpperSlider.Date = (DateTime)e.NewValue;
        }