locked
Creating hexagon with polygon class in XAML RRS feed

  • Question

  • Hi,

    Does anyone know how to create a hexagon using the polygon class in XAML. I have been struggling a lot with it and don't seem to get it.

    Thanks

    Thursday, March 8, 2012 3:41 AM

Answers

  • Something like this:

    <Polygon Points="60,0 
                             30,51.9615242270663 
                             -30,51.9615242270663
                             -60,7.34763812293426E-15 
                             -30,-51.9615242270663 
                             30,-51.9615242270663"
                     Stroke="Black" />

    Thursday, March 8, 2012 4:55 PM

All replies

  • Something like this:

    <Polygon Points="60,0 
                             30,51.9615242270663 
                             -30,51.9615242270663
                             -60,7.34763812293426E-15 
                             -30,-51.9615242270663 
                             30,-51.9615242270663"
                     Stroke="Black" />

    Thursday, March 8, 2012 4:55 PM
  • Thanks Diederik this helps !

    Friday, March 9, 2012 3:26 AM