© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ WPF draw over other arbitrary controls
C#CC# / help
3y ago
From WPF to Avalonia
C#CC# / help
14mo ago
❔ WinForm Draw Polygon from Radius Info
C#CC# / help
3y ago
✅ Running Python Program from WPF
C#CC# / help
13mo ago