Xamarin.Forms.ViewExtensions.TranslateTo Method
Animates an elements TranslationX and TranslationY properties from their current values to the new values.

Syntax

public static System.Threading.Tasks.Task<bool> TranslateTo (this VisualElement view, double x, double y, uint length, Easing easing)

Parameters

view
The view to tanslate.
x
The x component of the final translation vector.
y
The y component of the final translation vector.
length
The duration of the animation in milliseconds.
easing
The easing of the animation.

Returns

Documentation for this section has not yet been entered.

Remarks

Translate to is particular useful for animations because it is applied post-layout. Translation animations will not conflict with managed layouts and thus are ideal for doing slide in/out style animations.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.1.0.0, 1.2.0.0, 1.3.0.0