Windows Store Apps: How to draw a dashed line?

windows-8, windows-store-apps, winrt-xaml

Solution

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" />

Problem

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

Original source