Xamarin.Forms Guides | Samples

Xamarin.Forms.ViewExtensions Class

Extension methods for Views, providing animatable scaling, rotation, and layout functions.

See Also: ViewExtensions

Syntax

public static class ViewExtensions

Requirements

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

The members of Xamarin.Forms.ViewExtensions are listed below.

See Also: Object

Public Methods

static
CancelAnimations(VisualElement)
Aborts the TranslateTo, LayoutTo, RotateTo, ScaleTo, and FadeTo animations on view element.
static
FadeTo(this VisualElement, Double, UInt32, Easing) : System.Threading.Tasks.Task<bool>
Returns a task that performs the fade that is described by the opacity, length, and easing parameters.
static
LayoutTo(this VisualElement, Rectangle, UInt32, Easing) : System.Threading.Tasks.Task<bool>
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.
static
RelRotateTo(this VisualElement, Double, UInt32, Easing) : System.Threading.Tasks.Task<bool>
Rotates the VisualElement that is specified by view from its current rotation by drotation.
static
RelScaleTo(this VisualElement, Double, UInt32, Easing) : System.Threading.Tasks.Task<bool>
Returns a task that scales the VisualElement that is specified by view from its current scale to dscale.
static
RotateTo(this VisualElement, Double, UInt32, Easing) : System.Threading.Tasks.Task<bool>
Returns a task that performs the rotation that is described by the rotation, length, and easing parameters..
static
RotateXTo(this VisualElement, Double, UInt32, Easing) : System.Threading.Tasks.Task<bool>
Returns a task that skews the Y axis by opacity, taking time length and using easing.
static
RotateYTo(this VisualElement, Double, UInt32, Easing) : System.Threading.Tasks.Task<bool>
Returns a task that skews the X axis by opacity, taking time length and using easing.
static
ScaleTo(this VisualElement, Double, UInt32, Easing) : System.Threading.Tasks.Task<bool>
Returns a task that scales the VisualElement that is specified by view to the absolute scale factor scale.
static
TranslateTo(this VisualElement, Double, Double, UInt32, Easing) : System.Threading.Tasks.Task<bool>
Animates an elements TranslationX and TranslationY properties from their current values to the new values.