private static void RatingChanged(DependencyObject sender, DependencyPropertyChangedEventArgs ea)
        {
            RatingBox rb = sender as RatingBox;

            if (rb == null)
            {
                return;
            }

            rb.Rating = (double)ea.NewValue;
        }
        private static void GlyphChanged(DependencyObject sender, DependencyPropertyChangedEventArgs ea)
        {
            RatingBox rb = sender as RatingBox;

            if (rb == null)
            {
                return;
            }

            rb.Glyph = (char)ea.NewValue;
        }