private static void OnUpdateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadialSlider rs = d as RadialSlider; //null checks omitted bool v = Convert.ToBoolean(e.NewValue); //null checks omitted rs.Update = v; }
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadialSlider rs = d as RadialSlider; //null checks omitted double v = Convert.ToDouble(e.NewValue); //null checks omitted rs.Value = v; }
private static void OnPinBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadialSlider rs = d as RadialSlider; //null checks omitted Brush fb = e.NewValue as Brush; //null checks omitted rs.PinBrush = fb; }