First time here? You are looking at the most recent posts. You may also want to check out older archives or the tag cloud. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS. Thank you for visiting! (hide this)

dash

There are 1 entries for the tag dash

Sharing some Silverlight's bits: how to make a dashed line

In the last weeks I started playing around a bit with Silverlight in order to build something decent of the Italian Silverlight competition, so I decided to start sharing something of the things I found out while doing it. The first one is about drawing dashed lines. Here is how to do it in code: Line line = new Line();line.StrokeThickness = 1;double[] dashArray = new double[2];dashArray[0] = 2;dashArray[1] = 4;line.StrokeDashArray = dashArray; All you need is to define an array of double, size 2, and set the length of the dash as first element and the spacing between to dashes as second element of...