Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
        private static void PointPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            EaseCurveEditor easeCurveEditor = d as EaseCurveEditor;

            if (easeCurveEditor == null)
            {
                return;
            }
            easeCurveEditor.pointPositionsInvalid = true;
        }
Ejemplo n.º 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;
        }