Are horizontal or vertical WPF Lines limited to 125,000 pixels? Looking at the following code the Green line displays correctly but the Red one does not display at all despi
This seems to be a limitation in WPF's handling of vector graphics.
To make it more complicated, try changing the StrokeThickness
- if you set the StrokeThickness
of your red line from 1
to 2
, it displays again... until you increase the length above 250000.. Then it vanishes again.
The max length goes up as you increase your stroke thickness.
Also Note that if the line wasn't perfectly horizontal or vertical, the length limit seems to vanish:
You can find the bug written up on connect: Disappearing Path (WPF)