Ejemplo n.º 1
0
 private static void AspectChanged2(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     if (e.NewValue is Binding && ParentRatingControl != null)
     {
         BindingOperations.SetBinding(d, OutlineColorProperty, (Binding)e.NewValue);
     }
     if (ParentRatingControl != null)
     {
         ParentRatingControl.GenerateItems();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Generate event change for PathDataProperty and redraw RatingControl
 /// </summary>
 /// <param name="d">define rate element</param>
 /// <param name="e">value property event </param>
 private static void PathDataChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     if (e.NewValue is Binding)
     {
         BindingOperations.SetBinding(d, PathDataProperty, (Binding)e.NewValue);
     }
     if (e.OldValue != e.NewValue && ParentRatingControl != null)
     {
         ParentRatingControl.GenerateItems();
     }
 }