Path rendering bug

<PathStroke="Black"Data="M20 20 L10 10 L20 20 L30 10 Z" />

renders incorrectly, with a fill.

Is this a reasonable manner for reporting bugs? I didn't see an appropriate Microsoft Connection, unless you want us to use the general WPF one.

[846 byte] By [Walter] at [2008-2-5]
# 1

Yes this is a good place to report bugs. That does look like a bug, however, I'm confused by you path. It starts at 20,20 draws a line to 10,10 then draws a line back to 20,20? If I take out this extra line it renders correctly.

<Path Stroke="Black" Data="M20 20 L10 10 L30 10 Z" />

Still an interesting find though...

BryantLikes at 2007-9-5 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) General Discussion...
# 2
Imagine a quadrilateral that had been squeezed at opposite points.
Walter at 2007-9-5 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) General Discussion...
# 3

Hmmm... ok. Try this then:

<Path Stroke="Black" Data="M20 20 L10 10 L20 19.9 L30 10 Z" />

You just need to set it to a different point to make it work (like I said, it does sound like a bug).

BryantLikes at 2007-9-5 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) General Discussion...
# 4

This is a bug in our Feb CTP. This has been fixed and this fix will be in our next CTP released around Mix 07.

Joe

JoeStegman at 2007-9-5 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) General Discussion...