C# 如何在wpf中同时使用实线和虚线绘制路径
我是wpf的新手。现在,我需要画一个风格的图像,使用带有实线和虚线的“路径”作为示例图像。 我知道如何用实线或虚线绘制,但不知道如何将它们组合成一条路径C# 如何在wpf中同时使用实线和虚线绘制路径,c#,wpf,path,dotted-line,C#,Wpf,Path,Dotted Line,我是wpf的新手。现在,我需要画一个风格的图像,使用带有实线和虚线的“路径”作为示例图像。 我知道如何用实线或虚线绘制,但不知道如何将它们组合成一条路径 <Style x:Key="ItemStyle" TargetType="Path"> <Setter Property="Fill" Value="{StaticResource ItemBrush}"/> <Setter Property="Stroke" Value="{StaticResou
<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>
...
路径的笔划是虚线还是非虚线。你可能需要用不同的笔划画两条路径。我需要用带实线和虚线的“路径”样式画一幅图像,就像样本图像什么样的样本图像?