private static void PointsPropertyChangedHandler(DependencyObject d, DependencyPropertyChangedEventArgs e) { ToleranceGraph tolerancePlot = (ToleranceGraph)d; if (tolerancePlot != null) { InteractiveDataDisplay.WPF.Plot.SetPoints(tolerancePlot.polygon, (PointCollection)e.NewValue); } }
private static void OnFillChanged(object target, DependencyPropertyChangedEventArgs e) { ToleranceGraph toleranceGraph = (ToleranceGraph)target; toleranceGraph.polygon.Fill = e.NewValue as Brush; }