什么是 M , L , XAML for Path Data 属性 [英] What is M , L , XAML for Path Data attribute

查看:25
本文介绍了什么是 M , L , XAML for Path Data 属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看内部 Silverlight 控件以对其进行一些更改,我看到类似的内容;

I am looking at an in-house Silverlight control to make some changes to it and I see something like;

 <Path x:Name="SomeIcon" Data="M102.03442,598.79645 L105.22962,597.78918

...只复制了数据中的一部分.

...copied just a part of what was in the Data.

那些是什么?他们怎么知道在那里放什么?另外,它们会影响什么?

What are those? How did they know what to put there? Also, what do they affect?

推荐答案

这就是所谓的 路径标记语法,用于定义路径的形状.

That's called the Path Markup Syntax and it's used to define the shape of a Path.

  • M表示Move命令,将当前位置"移动到X,Y中的指定点.
  • L表示Line命令,从当前位置到X,Y中的指定点画一条线.
  • M represents the Move command, which moves the "current location" to the specified point in X,Y.
  • L represents the Line command, which draws a line from the current location to the specified point in X,Y.

您可以手动输入,但建议您使用支持矢量图形的编辑器,例如 Expression Blend.

You can type it manually, though it is recommended that you use a Vector graphics capable editor, such as Expression Blend.

这篇关于什么是 M , L , XAML for Path Data 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆