Example #1
0
        protected virtual void OnChanged(RatingEventArgs e)
        {
            RatingEventHandler eventHandler = (RatingEventHandler)base.Events[Rating.EventChange];

            if (eventHandler != null)
            {
                eventHandler(this, e);
            }
        }
Example #2
0
        public static void RemoveValueChangedHandler(DependencyObject source, RatingEventHandler handler)
        {
            var rating = source as RatingBase;

            if (rating != null)
            {
                rating.RemoveHandler(ValueChangedEvent, handler);
            }
        }