Move.RelativeTo Property
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:
LocalMoves the given amount of points in the X and/or Y direction.SizeMoves the given amount times the size of the element. So X="1" moves the element by its entire width in the X direction.ParentSizeSame asSizebut uses the elements parents size instead.PositionChangeUsed in response to a LayoutAnimation to move the element by the amount of change in position within it's parent.WorldPositionChangeUsed in response to a LayoutAnimation to move the element by the amount of change in position relative to the entire display.KeyboardMoves the element relative to the size of the keyboard.LayoutChangeDeprecated. UsePositionChangeinstead.
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