Esempio n. 1
0
        private static void OnStrokeLineJoinChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LineIndicatorBase indicator = d as LineIndicatorBase;
            PenLineJoin       newValue  = (PenLineJoin)e.NewValue;

            indicator.renderer.strokeShape.StrokeLineJoin = newValue;

            indicator.OnStrokeLineJoinChanged(newValue);
        }
Esempio n. 2
0
        private static void OnStrokeThicknessChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LineIndicatorBase indicator = d as LineIndicatorBase;
            double            newValue  = (double)e.NewValue;

            indicator.renderer.strokeShape.StrokeThickness = newValue;

            indicator.OnStrokeThicknessChanged(newValue);
        }
Esempio n. 3
0
        private static void OnStrokeDashArrayChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LineIndicatorBase indicator = d as LineIndicatorBase;
            DoubleCollection  newValue  = e.NewValue as DoubleCollection;

            indicator.renderer.strokeShape.StrokeDashArray = newValue.Clone();

            indicator.OnStrokeDashArrayChanged(newValue);
        }
Esempio n. 4
0
        private static void OnStrokeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LineIndicatorBase indicator = d as LineIndicatorBase;

            indicator.renderer.strokeShape.Stroke = e.NewValue as Brush;

            if (indicator.isPaletteApplied)
            {
                indicator.UpdatePalette(true);
            }
        }