C#C
C#3y ago
Cyclonit

❔ WPF: draw polygen offset from origin

Hi,
I am trying to draw a polygon within a control but it appears to always start at the control's origin. It consists of 4 points. When I include the origin (0,0) as an additional 5th point, the other 4 appear at the right coordinates. But when I exclude (0,0), the whole polygon shifts down. Is this intended behaviour?

The first image shows the polygon including (0,0), the second without it.
image.png
image.png
Was this page helpful?