コード例 #1
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);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 /// <summary>
 /// Called when the StrokeDashArray property is changed.
 /// </summary>
 protected override void OnStrokeDashArrayChanged(DoubleCollection newValue)
 {
     this.signalRenderer.strokeShape.StrokeDashArray = newValue.Clone();
 }