1
Vote

RingSlice StrokeThickness issue

description

Adjusting the stroke thickness should change the rendered size, but it shows clipping. To fix:

In the UpdatePath() method,

The lines:
 var center =
                this.Center ??
                new Point(
                    Radius + this.StrokeThickness / 2,
                    Radius + this.StrokeThickness / 2);
should be changed to:
 var center =
                this.Center ??
                new Point(
                    Radius + (this.StrokeThickness / 2),
                    Radius + (this.StrokeThickness / 2));

comments