Пример #1
0
        static void UserControl_RatingPropertyChanged(DependencyObject property,
                                                      DependencyPropertyChangedEventArgs args)
        {
            RatingUserControl ratingUserControl = (RatingUserControl)property;

            ratingUserControl.UpdatePanel(ratingUserControl.Rating);
        }
Пример #2
0
        static void UserControl_ReadOnlyPropertyChanged(DependencyObject property,
                                                        DependencyPropertyChangedEventArgs args)
        {
            RatingUserControl ratingUserControl = (RatingUserControl)property;

            if (ratingUserControl.ReadOnly)
            {
                ratingUserControl.Cursor = Cursors.Arrow;
            }
            else
            {
                ratingUserControl.Cursor = Cursors.Hand;
            }
        }