WPF User Control Polyline Size Wrong
Posted on 2013-12-14
I have created a custom user control for WPF use with VB.net for the code behind. Essentially, it is a polyline that snaps to connect other custom controls. The Polyline is created via code at runtime. It works great vertically and if it has both width and height. However if it is horizontal or flat, it distorts. The thicker the line, the worse it distorts. It distorts on both ends with neither beginning or ending in the right location.
Any ideas on how to fix? It looks like a stretch issue but it doesn't stretch completely.