TGML Translations: <Translate>

Translate translates (moves) the coordinate system for the immediate parent element.

Attribute Type Description

X

Double

Specifies the X direction.
Default: "0.0"
Inheritable: No
Animatable: Yes

Y

Double

Specifies the Y direction.
Default: "0.0"
Inheritable: No
Animatable: Yes

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: