Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Store Apps: How to draw a dashed line?

How can I draw a dashed Line in Windows Store Apps (XAML) ?

like image 332
Mina Wissa Avatar asked Feb 03 '13 14:02

Mina Wissa


1 Answers

Use the StrokeDashArray property. For example, the following XAML produces the line in the image below it:

<Line Stroke="Red" X1="0" X2="400" Y1="0" Y2="400" 
      StrokeThickness="9" StrokeDashArray="3,5" StrokeDashCap="Round" />

enter image description here

like image 140
Jim O'Neil Avatar answered Nov 15 '22 10:11

Jim O'Neil