Ejemplo n.º 1
0
        public static void OnValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            RadialSlider ctl = (obj as RadialSlider);

            ctl.InvalidateVisual();

            // Update the two-way bound value
            if (args.Property == RadialSlider.ValueProperty)
            {
                ctl.Value = (double)args.NewValue;
            }
        }
Ejemplo n.º 2
0
 public static void OnArcPropChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
 {
     // Force a re-render of the object if one of the display metrics change
     RadialSlider ctl = (obj as RadialSlider);
     //ctl.UpdateArc();
 }