Mega Code Archive

 
Categories / C# / WPF
 

PenLineJoin Miter

<StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"             Orientation="Horizontal">     <StackPanel.Resources>         <Style TargetType="{x:Type TextBlock}">             <Setter Property="Canvas.Left" Value="25" />         </Style>         <Style TargetType="{x:Type Canvas}">             <Setter Property="Width" Value="150" />             <Setter Property="Margin" Value="12" />         </Style>          <Style TargetType="{x:Type Rectangle}">             <Setter Property="Width" Value="100" />             <Setter Property="Height" Value="100" />             <Setter Property="Canvas.Top" Value="50" />             <Setter Property="Canvas.Left" Value="25" />             <Setter Property="Stroke" Value="Black" />             <Setter Property="StrokeThickness" Value="25" />         </Style>     </StackPanel.Resources>     <Canvas>         <TextBlock Text="PenLineJoin.Miter" />         <Rectangle StrokeLineJoin="Miter" />     </Canvas> </StackPanel>