コード例 #1
0
        private static void OnStarOpacityChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            StarRating sr       = (StarRating)obj;
            double     newValue = (double)e.NewValue;

            sr.SetStars(sr.currentStars);
        }
コード例 #2
0
        private static void OnRatingChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            StarRating sr       = (StarRating)obj;
            int        newValue = (int)e.NewValue;

            sr.SetStars(newValue);
        }