예제 #1
0
 public void OnRender(DrawingContext dc, EaseCurveEditor editor)
 {
     if (editor.ControlPointBrush == null)
     {
         return;
     }
     dc.DrawEllipse(editor.ControlPointBrush, (Pen)null, new Point(this.CenterX - 0.5, this.CenterY - 0.5), this.Radius, this.Radius);
 }
예제 #2
0
        private static void PointPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            EaseCurveEditor easeCurveEditor = d as EaseCurveEditor;

            if (easeCurveEditor == null)
            {
                return;
            }
            easeCurveEditor.pointPositionsInvalid = true;
        }
예제 #3
0
        private static void BrushPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            EaseCurveEditor easeCurveEditor = d as EaseCurveEditor;

            if (easeCurveEditor == null)
            {
                return;
            }
            easeCurveEditor.curvePen  = null;
            easeCurveEditor.linePen   = null;
            easeCurveEditor.brushOne  = null;
            easeCurveEditor.brushFive = null;
            easeCurveEditor.brushTen  = null;
        }