Xamarin.Forms Guides | Samples

Xamarin.Forms.Aspect Enumeration

Defines how an image is displayed.

Syntax

public enum Aspect

Remarks

Members

Member NameDescription
AspectFillScale the image to fill the view. Some parts may be clipped in order to fill the view.
AspectFitScale the image to fit the view. Some parts may be left empty (letter boxing).
FillScale the image so it exactly fills the view. Scaling may not be uniform in X and Y.

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.Aspect are listed below.

See Also: Enum

Public Fields

AspectFillAspect. Scale the image to fill the view. Some parts may be clipped in order to fill the view.
AspectFitAspect. Scale the image to fit the view. Some parts may be left empty (letter boxing).
FillAspect. Scale the image so it exactly fills the view. Scaling may not be uniform in X and Y.