Пример #1
0
        private static object AngleCoerceValue(DependencyObject d, object value)
        {
            Knob3D k         = ((Knob3D)d);
            double walkAngle = k.WalkAngle;

            return(-(k.Rate * walkAngle + ((360.0 - walkAngle) / 2.0)));
        }
Пример #2
0
        private static void WalkAnglePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Knob3D k = (Knob3D)d;

            k.InvalidateProperty(Knob3D.AngleProperty);
        }