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); }
private void createBorder() { border = new Ellipse(); border.Stroke = Brushes.White; border.StrokeThickness = startThickness; border.StrokeDashArray = startStrokeDashArray.Clone(); border.Width = border.Height = 2.5 * Kernel.Radius.ToPixels(); border.RenderTransformOrigin = new Point(0.5, 0.5); Panel.SetZIndex(border, GameProperties.BorderDecoratorZIndex); border.Visibility = Visibility.Hidden; }
/// <summary> /// Called when the StrokeDashArray property is changed. /// </summary> protected override void OnStrokeDashArrayChanged(DoubleCollection newValue) { this.signalRenderer.strokeShape.StrokeDashArray = newValue.Clone(); }