Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
        private static void OnFillChanged(object target, DependencyPropertyChangedEventArgs e)
        {
            ToleranceGraph toleranceGraph = (ToleranceGraph)target;

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