Specifies what the movement should be relative to.

By default, when we specify X and Y offsets the Move animator for example, the values are understood to be points in the local coordinate system. However, sometimes we need to specify a distance that are not known at design time, but is relative to the size of something else. This is where this property comes in handy.

There are multiple options for this property:

  • Local Moves the given amount of points in the X and/or Y direction.
  • Size Moves the given amount times the size of the element. So X="1" moves the element by its entire width in the X direction.
  • ParentSize Same as Size but uses the elements parents size instead.
  • PositionChange Used in response to a LayoutAnimation to move the element by the amount of change in position within it's parent.
  • WorldPositionChange Used in response to a LayoutAnimation to move the element by the amount of change in position relative to the entire display.
  • Keyboard Moves the element relative to the size of the keyboard.
  • LayoutChange Deprecated. Use PositionChange instead.

For advanced use cases, you can also implement your own ITranslationMode and assign to this property.

Location

Namespace
Fuse.Animations
Package
Fuse.Animations 2.9.1

Returns

ITranslationMode