TGML Translations: <Translate>
Translate translates (moves) the coordinate system for the immediate parent element.
Attribute | Type | Description |
---|---|---|
X |
Double |
Specifies the X direction. |
Y |
Double |
Specifies the Y direction. |
Example:
Copy
<TGML>
<Rectangle Left="0" Top="0" Width="50" Height="50" Fill="#FF0000"/>
<Rectangle Left="0" Top="0" Width="50" Height="50" Fill="#FF0000”>
<Translate X="100" Y="100"/>
</Rectangle>
</TGML>
Example on screen: