From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Understand line stroke patterns

Understand line stroke patterns - Visual Studio Tutorial

From the course: Visual Studio Developer Tips

Understand line stroke patterns

- [Instructor] Drawing a line in WPF and other ZML-based frameworks is straightforward. Lines, by default, are solid color the entire length of the line. There are times when using a dash pattern can spice up the user interface. For example, here you can see I have a solid-colored blue line at the top, and then, below that, I have a more interesting pattern here, with these three orange lines. What I'll look at in this tip is how to define simple and complex line/dash patterns. And to do that, I'll start by looking at the simple line tab. This is where I define two orange lines. Let me select this first line, and I want you to note that when I select the line, there is a light blue line superimposed over that on the designer. This is an artifact of Visual Studio, it won't show up when you're running the application. This is just a visual clue that I've selected that line, and it also shows me the center point of the line. So if I select this second line, you'll see that the blue line…

Contents