Use System Color to draw Line : Color « Windows Presentation Foundation « C# / C Sharp
- C# / C Sharp
- Windows Presentation Foundation
- Color
Use System Color to draw Line

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Line X1="48" Y1="48" X2="1000" Y2="48"
Stroke="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"
StrokeThickness="12"
StrokeDashArray="1 2 2 1" />
</Canvas>
Related examples in the same category