What is the Data value of plus sign in Path

杀马特。学长 韩版系。学妹 提交于 2019-12-05 21:47:34

Here, I've created a plus and minus sign which is 10 x 10 pixels using XAML path markup syntax:

<Path Margin="10" Stroke="White" Data="M0,5 H10 M5,5 V10Z"  StrokeThickness="2" Height="10" Width="10" />

<Path Margin="10" Stroke="White" Data="M0,5 H10"  StrokeThickness="2" Height="10" Width="10" />

When experimenting with designing your path drawing, it's helpful to set the path element's height & width first. To better understand XAML path markup syntax, see MSDN.

You might find it easier if you draw them out on a piece of graph paper and then label the vertices with the values needed to reach it from the previous one.

Then copy this into your code.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!