You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.6 KiB

<Window x:Class="DashedFigure.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DashedFigure"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="500">
<Window.Resources>
<Style TargetType="Line">
<Setter Property="X1" Value="0"/>
<Setter Property="X2" Value="360"/>
<Setter Property="Stroke" Value="MediumSlateBlue"/>
<Setter Property="StrokeThickness" Value="3"/>
<Setter Property="Margin" Value="12"/>
</Style>
</Window.Resources>
<StackPanel>
<Line HorizontalAlignment="Center" StrokeDashArray="1"/>
<Line HorizontalAlignment="Center" StrokeDashArray="1, 1"/>
<Line HorizontalAlignment="Center" StrokeDashArray="1, 6"/>
<Line HorizontalAlignment="Center" StrokeDashArray="6, 1"/>
<Line HorizontalAlignment="Center" StrokeDashArray="0.25, 1"/>
<Line HorizontalAlignment="Center" StrokeDashArray="4 1 1 1 1 1"/>
<Line HorizontalAlignment="Center" StrokeDashArray="1 2 4"/>
<Line HorizontalAlignment="Center" StrokeDashArray="4 2 4"/>
<Rectangle Height="60" Width="200" Margin="12" HorizontalAlignment="Center"
RadiusX="30" RadiusY="30"
Stroke="SlateGray" StrokeThickness="5" StrokeDashArray="1"/>
</StackPanel>
</Window>