Polyline

Polyline represents a sequence of lines, expressed in its Points property (a collection of Point objects). The following four Polylines are rendered in Figure 7.3:

<StackPanel>  <Polyline Points="0,0 100,100" Stroke="Black" StrokeThickness="10" Margin="4"/>  <Polyline Points="0,0 100,100 200,0" Stroke="Black" StrokeThickness="10"    Margin="4"/>  <Polyline Points="0,0 100,100 200,0 300,100" Stroke="Black" StrokeThickness="10"    Margin="4"/>  <Polyline Points="0,0 100,100 200,0 300,100 100,100" Stroke="Black"    StrokeThickness="10" Margin="4"/></StackPanel>

Image

FIGURE 7.3 Four Polylines, ranging from 2 to ...

Get XAML 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.