What is the Path.Data
value of this arrow:
什么是路径。箭头的数据值:
Max Grid width and height are 18x18
最大网格宽度和高度为18x18。
1 个解决方案
#1
22
MSDN's example default template for an Expander uses M 0 4 L 4 0 L 8 4 Z
MSDN的示例扩展器的默认模板使用m0 4 l4 0 l8 4z
Most path's start with the letter "M"
and an x,y coordinate, followed by line segments which are identified by a Character followed by space-delminited numbers for parameters, and end with the letter "Z"
. So M 0 4 L 4 0 L 8 4 Z
means
大多数路径以字母“M”和x、y坐标开头,然后是行段,这些行段由字符标识,后面是空格分隔的数字作为参数,最后是字母“Z”。所以m0 4 L 4 0 L 8 4 Z。
- start at 0,4
- 从0开始,4
- draw a Line up to 4,0
- 画一条直线到(4,0
- draw a Line down to 8,4
- 画一条线到8 4。
- then end the Path
- 然后结束路径
I often use the following site as a reference guide for this "geometry mini language": rcosic.wordpress.com/2009/08/11/wpf-geometry-mini-language
我经常使用以下网站作为这个“几何迷你语言”的参考指南:rcosic.wordpress.com/2009/08/11/wpf-几何体迷你语言
<Path x:Name="CollapsedArrow"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M 0 0 L 4 4 L 8 0 Z">
<Path.Fill>
<SolidColorBrush Color="{DynamicResource GlyphColor}" />
</Path.Fill>
</Path>
<Path x:Name="ExpandededArrow"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Visibility="Collapsed"
Data="M 0 4 L 4 0 L 8 4 Z">
#1
22
MSDN's example default template for an Expander uses M 0 4 L 4 0 L 8 4 Z
MSDN的示例扩展器的默认模板使用m0 4 l4 0 l8 4z
Most path's start with the letter "M"
and an x,y coordinate, followed by line segments which are identified by a Character followed by space-delminited numbers for parameters, and end with the letter "Z"
. So M 0 4 L 4 0 L 8 4 Z
means
大多数路径以字母“M”和x、y坐标开头,然后是行段,这些行段由字符标识,后面是空格分隔的数字作为参数,最后是字母“Z”。所以m0 4 L 4 0 L 8 4 Z。
- start at 0,4
- 从0开始,4
- draw a Line up to 4,0
- 画一条直线到(4,0
- draw a Line down to 8,4
- 画一条线到8 4。
- then end the Path
- 然后结束路径
I often use the following site as a reference guide for this "geometry mini language": rcosic.wordpress.com/2009/08/11/wpf-geometry-mini-language
我经常使用以下网站作为这个“几何迷你语言”的参考指南:rcosic.wordpress.com/2009/08/11/wpf-几何体迷你语言
<Path x:Name="CollapsedArrow"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M 0 0 L 4 4 L 8 0 Z">
<Path.Fill>
<SolidColorBrush Color="{DynamicResource GlyphColor}" />
</Path.Fill>
</Path>
<Path x:Name="ExpandededArrow"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Visibility="Collapsed"
Data="M 0 4 L 4 0 L 8 4 Z">