O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Polygon

Just as Rectangle makes Ellipse redundant, Polyline makes Polygon redundant. The only difference between Polyline and Polygon is that Polygon automatically adds a visible line segment connecting the first Point and last Point if one doesn’t already exist.

If you take each Polyline from Figure 7.4 and change each element name to Polygon, you get the result shown in Figure 7.5. Notice that the initial line segment in the first and last Polygons is noticeably longer than in Figure 7.4. This is due to Miter corners joining the initial line segment with the final line segment (which happens to share the same coordinates), which would extend infinitely if not for a StrokeMiterLimit property limiting it to 10 pixels. The Miter and StrokeMiterLimit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required