数据点为路径绘制一个标记。

时间:2021-01-21 12:39:12

Can anyone specify the data points to be used to get a tick mark like the following

任何人都可以指定要使用的数据点以得到像下面这样的刻度标记吗?

数据点为路径绘制一个标记。

I use this

我用这个

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

But doesnt look like the above,It looks like

但不像上面的,看起来像

数据点为路径绘制一个标记。

1 个解决方案

#1


6  

If you need an specific path, I recommend to use Inkscape or Expression Design and try to make by yourself

如果您需要一个特定的路径,我建议您使用Inkscape或Expression Design,并尝试自己制作

For this case, I have made it in Inkscape and pasted into 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"/>

Then extract the Data to your Path

然后将数据提取到路径中

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

And just adjust until you like the tick mark

调整到你喜欢的记号

#1


6  

If you need an specific path, I recommend to use Inkscape or Expression Design and try to make by yourself

如果您需要一个特定的路径,我建议您使用Inkscape或Expression Design,并尝试自己制作

For this case, I have made it in Inkscape and pasted into 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"/>

Then extract the Data to your Path

然后将数据提取到路径中

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

And just adjust until you like the tick mark

调整到你喜欢的记号