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); }
private static void PointPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { EaseCurveEditor easeCurveEditor = d as EaseCurveEditor; if (easeCurveEditor == null) { return; } easeCurveEditor.pointPositionsInvalid = true; }
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; }