示例#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);
            }
        }
示例#2
0
        private static void OnFillChanged(object target, DependencyPropertyChangedEventArgs e)
        {
            AreaGraph areaGraph = (AreaGraph)target;

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