Data Points for Path 绘制刻度线

Data Points for Path to draw a tick mark

任何人都可以指定用于获取刻度线的数据点,如下所示

我用这个

<Path Name="TickMark" Fill="Black" Data="M0,4 5,9 9,0 4,5" Visibility="Hidden" />

但是和上面的不一样,看起来像

如果需要具体路径,推荐使用Inkscape或者Expression Design自己尝试制作

对于这种情况,我在 Inkscape 中制作并粘贴到 Expression Design 中:

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="Layer_1" Width="8" Height="9" Canvas.Left="0" Canvas.Top="0">
<Path Width="7.85446" Height="8.57578" Canvas.Left="-0.0522281" Canvas.Top="-0.100391" Stretch="Fill" StrokeThickness="1.04192" StrokeMiterLimit="2.75" Stroke="#FF000000" Data="F1 M 0.468732,4.66838L 3.03345,7.95443L 7.28127,0.420569"/>

然后将数据提取到您的路径

<Path Name="TickMark" Fill="Black" Data="F1 M 0.468732,4.66838L 3.03345,7.95443L 7.28127,0.420569" Visibility="Hidden" />

然后调整直到你喜欢刻度线