Polyline

A Polyline lets you draw a connected series of line segments. Instead of having properties for start and end points, Polyline has a Points property, containing a list of coordinate pairs, as Example 13-13 illustrates.

Example 13-13. Polyline

<Polyline Stroke="Blue"

Points="0,30 10,30 15,0 18,60 23,30 35,30 40,0 43,60 48,30 160,30" />

WPF simply draws a line that goes through each point in turn, as shown in Figure 13-16.

Figure 13-16. A Polyline

Figure 13-16. A Polyline

As with the Line class, the point coordinates in a Polyline are relative to wherever the containing panel chooses to locate the Polyline.

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment