OnOrientationChanged() private static method

private static OnOrientationChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
sender System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void
Ejemplo n.º 1
0
        private static void OnOrientationChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            RangeSlider rangeSlider = sender as RangeSlider;

            if (rangeSlider != null)
            {
                rangeSlider.OnOrientationChanged((Orientation)e.OldValue, (Orientation)e.NewValue);
            }
        }