Windows Store apps: how to draw a dashed line?

How to draw a dashed line in Windows Store (XAML) applications?

+4
source share
1 answer

Use the StrokeDashArray property. For example, the following XAML creates a line in the image below:

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

enter image description here

+7
source

All Articles