how can I draw a path with both solid and dotted line in wpf

589 Views Asked by At

I am new to wpf. Now I need to draw a image in style, using 'path' with both solid and dotted line like sample image. I know how to draw with solid or dotted line, but have no idea about combine them in a path...

<Style x:Key="ItemStyle" TargetType="Path">
    <Setter Property="Fill" Value="{StaticResource ItemBrush}"/>
    <Setter Property="Stroke" Value="{StaticResource ItemStroke}"/>
    <Setter Property="StrokeThickness" Value="2"/>
    ...
</Style>
<Style x:Key="Vessel" TargetType="Path" BasedOn="{StaticResource ItemStyle}">
    <Setter Property="Data" Value="..."/>
</Style>
0

There are 0 best solutions below