Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

DashArray Stroke

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Center" VerticalAlignment="Center">         <StackPanel Orientation="Horizontal">           <StackPanel.Resources>             <Style TargetType="Rectangle">               <Setter Property="Width" Value="230" />               <Setter Property="Height" Value="60" />               <Setter Property="Margin" Value="7" />             </Style>           </StackPanel.Resources>          <Rectangle Stroke="Black" StrokeThickness="5" StrokeDashArray="1" />         </StackPanel> </Page>