What is this Path code doing?

63 Views Asked by At

I am looking at some example code for Expanding Item Renders in Datagrid and I don't understand the line of code below:

Path data="M 0 0 L 8 0 L 4 6 L 0 0 Z" 

I know it is defining the path used to define the triangle graphic but I don't understand how it is doing that. I've tried fiddling with the data but it still isn't making sense. Can anyone shed some light on what this line is doing?

enter image description here


<s:Path data="M 0 0 L 8 0 L 4 6 L 0 0 Z" 
        top="3" left="3" rotation.up="-90" rotation="-90" 
        rotation.upAndSelected="0" rotation.overAndSelected="0" 
        rotation.downAndSelected="0">
    <s:fill>
        <s:SolidColor color="0x999999" color.over="0x000000" color.overAndSelected="0x000000" />
    </s:fill>
</s:Path>
1

There are 1 best solutions below

0
On

Ok, so digging around a bit after the tip from @DodgerThud I found the documentation for defining paths in mxml