public static void OnValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { RadialSlider ctl = (obj as RadialSlider); ctl.InvalidateVisual(); // Update the two-way bound value if (args.Property == RadialSlider.ValueProperty) { ctl.Value = (double)args.NewValue; } }
public static void OnArcPropChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { // Force a re-render of the object if one of the display metrics change RadialSlider ctl = (obj as RadialSlider); //ctl.UpdateArc(); }