Ejemplo n.º 1
0
        private static void OnUpdateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadialSlider rs = d as RadialSlider;             //null checks omitted
            bool         v  = Convert.ToBoolean(e.NewValue); //null checks omitted

            rs.Update = v;
        }
Ejemplo n.º 2
0
        private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadialSlider rs = d as RadialSlider;            //null checks omitted
            double       v  = Convert.ToDouble(e.NewValue); //null checks omitted

            rs.Value = v;
        }
Ejemplo n.º 3
0
        private static void OnPinBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadialSlider rs = d as RadialSlider;   //null checks omitted
            Brush        fb = e.NewValue as Brush; //null checks omitted

            rs.PinBrush = fb;
        }