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 15.4 and change each element name to Polygon
, you get the result shown in Figure 15.5. Notice that the initial line segment in the first and last Polygon
s is noticeably longer than in Figure 15.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 ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.