Skip to main content

Microsoft Silverlight

Answered Question I need help with the drawing of a polygonRSS Feed

(0)

DJanjicek
DJanjicek

Participant

Participant

964 points

319 Posts

I need help with the drawing of a polygon

Hey everybody,

i need some help with drawing a polygon which has to get the shape of a + sign. What i have is the xaml for a _ polygon which is okay, but i need another one for a + sign. Can anybody help me out? 

Here is the xaml for the _ polygon:

<Polygon Points="0, 7 9, 7 9, 5 0, 5 0, 7" StrokeThickness="0" Fill="Black" />

Thanks in advance...

 

SharpGIS
SharpGIS

Contributor

Contributor

3397 points

611 Posts

Answered Question

Re: I need help with the drawing of a polygon

Try this:
< Path Stroke="Black" Fill="Gray" Data="M 0,5 H 10 M 5,0 V 10" />

Also see: http://msdn.microsoft.com/en-us/library/cc189041(VS.95).aspx

--
/Morten | blog - twitter
Please click on "Mark as Answer" if this answered your question.

DJanjicek
DJanjicek

Participant

Participant

964 points

319 Posts

Re: I need help with the drawing of a polygon

Awesome! Thank you!

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities