Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Aspect Enum

Definition

Namespace:
Microsoft.Maui
Assembly:
Microsoft.Maui.dll
Source:
Aspect.cs
Source:
Aspect.cs
Source:
Aspect.cs
Source:
Aspect.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Defines how an image is displayed.

public enum class Aspect
public enum Aspect
type Aspect = 
Public Enum Aspect
Inheritance
Aspect

Fields

Name Value Description
AspectFit 0

Scale the image to fit the view. Some parts may be left empty (letter boxing).

AspectFill 1

Scale the image to fill the view. Some parts may be clipped in order to fill the view.

Fill 2

Scale the image so it exactly fills the view. Scaling may not be uniform in X and Y.

Center 3

Center the image in the view without scaling.

Applies to


Feedback

Was this page helpful?