Beispiel #1
0
        private static void PointsPropertyChangedHandler(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ToleranceGraph tolerancePlot = (ToleranceGraph)d;

            if (tolerancePlot != null)
            {
                InteractiveDataDisplay.WPF.Plot.SetPoints(tolerancePlot.polygon, (PointCollection)e.NewValue);
            }
        }
Beispiel #2
0
        private static void OnFillChanged(object target, DependencyPropertyChangedEventArgs e)
        {
            ToleranceGraph toleranceGraph = (ToleranceGraph)target;

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