static void UserControl_RatingPropertyChanged(DependencyObject property, DependencyPropertyChangedEventArgs args) { RatingUserControl ratingUserControl = (RatingUserControl)property; ratingUserControl.UpdatePanel(ratingUserControl.Rating); }
static void UserControl_ReadOnlyPropertyChanged(DependencyObject property, DependencyPropertyChangedEventArgs args) { RatingUserControl ratingUserControl = (RatingUserControl)property; if (ratingUserControl.ReadOnly) { ratingUserControl.Cursor = Cursors.Arrow; } else { ratingUserControl.Cursor = Cursors.Hand; } }