- 正三角形(左):<Path Data="M40,0 L0,30 40,60 z" Stretch="Uniform"/>
- 正三角形(上):<Path Data="M0,40 L30,0 60,40 z" Stretch="Uniform"/>
- 正三角形(右):<Path Data="M0,0 L40,30 0,60 z" Stretch="Uniform"/>
- 正三角形(下):<Path Data="M0,0 L30,40 60,0 z" Stretch="Uniform"/>
- 矩形:<Path Data="M0,0 L1,0 L1,1 L0,1 z" Stretch="Uniform"/>
- 圆形:<Path Data="M100,50 C100,77.614237 77.614237,100 50,100 C22.385763,100 0,77.614237 0,50 C0,22.385763 22.385763,0 50,0 C77.614237,0 100,22.385763 100,50 z" Stretch="Uniform"/>
- 箭头(左):<Path Data="M40,0 L0,30 40,60" Stretch="Uniform"/>
- 箭头(上):<Path Data="M0,40 L30,0 60,40" Stretch="Uniform"/>
- 箭头(右):<Path Data="M0,0 L40,30 0,60" Stretch="Uniform"/>
- 箭头(下):<Path Data="M0,0 L30,40 60,0" Stretch="Uniform"/>
Stretch
默认使用Uniform
,在这种参数下矩形为正方形、圆形为正圆形,如果修改Stretch
为Fill
,则根据容器高宽进行自由拉伸。