Esempio n. 1
0
        private static void PointsPropertyChangedHandler(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AreaGraph areaPlot = (AreaGraph)d;

            if (areaPlot != null)
            {
                InteractiveDataDisplay.WPF.Plot.SetPoints(areaPlot.polygon, (PointCollection)e.NewValue);
            }
        }
Esempio n. 2
0
        private static void OnFillChanged(object target, DependencyPropertyChangedEventArgs e)
        {
            AreaGraph areaGraph = (AreaGraph)target;

            areaGraph.polygon.Fill = e.NewValue as Brush;
        }