How to: Draw a Polyline by Using the Polyline Element
This example shows how to draw a polyline, which is a series of connected lines, by using the Polyline element.
To draw a polyline, create a Polyline element and use its Points property to specify the shape vertices. Finally, use the Stroke and StrokeThickness properties to describe the polyline outline because a line without a stroke is invisible.
In Extensible Application Markup Language (XAML), valid syntax for points is a space-delimited list of comma-separated x- and y-coordinate pairs.
This example is part of a larger sample; for the complete sample, see Shape Elements Sample.