Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
            }
        }