Open chen9835 opened 4 years ago
That is because the Ellipse
is filling the whole Grid
that grows bigger because of the arc stroke. It then uses the Stretch
property to decide how to fill into the extra space. It is asymmetrical because the stroke normally counts into the path size, except that you force it to go negative on the left side.
If you change the stroke thickness of the ellipse and look at its line in the designer, you will see that it positions the ellipse so that it fits into the size including the stroke. That's what you need to do with your path.
You have two possible solutions:
HorizontalAlignment="Left"
on the Ellipse
. That will align the stroke-less ellipse to left zero where you have the center of the path strokeStartPoint
should be 10, 0
and ArcSegment.Point
should be 210, 0
. (half of the stroke thickness)@miloush Thanks. I has tried, it works well.
Security issues and bugs should be reported privately, learn more via our responsible disclosure guidelines.
Problem description: "ArcSegment" can't be drawn semi-circle correctly along the circle that was drawn by "Ellipse":
Actual behavior:
Expected behavior: "ArcSegment" can be drawn semi-circle correctly along the circle that was drawn by "Ellipse", Or how can I achieve that? Thanks.
Minimal repro: