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