private static void OnStarOpacityChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { StarRating sr = (StarRating)obj; double newValue = (double)e.NewValue; sr.SetStars(sr.currentStars); }
private static void OnRatingChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { StarRating sr = (StarRating)obj; int newValue = (int)e.NewValue; sr.SetStars(newValue); }