ViewExtensions.LayoutTo(VisualElement, Rectangle, UInt32, Easing) Method

Definition

Returns a task that eases the bounds of the VisualElement that is specified by the view to the rectangle that is specified by the bounds parameter.

public static System.Threading.Tasks.Task<bool> LayoutTo (this Xamarin.Forms.VisualElement view, Xamarin.Forms.Rectangle bounds, uint length = 250, Xamarin.Forms.Easing easing = default);
static member LayoutTo : Xamarin.Forms.VisualElement * Xamarin.Forms.Rectangle * uint32 * Xamarin.Forms.Easing -> System.Threading.Tasks.Task<bool>

Parameters

view
VisualElement

The view on which this method operates.

bounds
Rectangle

The layout bounds.

length
UInt32

The time, in milliseconds, over which to animate the transition. The default is 250.

easing
Easing

The easing function to use for the animation.

Returns

Applies to