private static void ValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RatingControl control = (d as RatingControl); if (control._isLoaded) { control.RefreshRateValues(); } }
private static void RoundValueSlicePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { if (e.OldValue != e.NewValue) { RatingControl control = (d as RatingControl); control.Value = control.RoundSliced((double)e.NewValue); control.RefreshRateValues(); } }