How do I set the aspect ratio of an image in .NET MAUI?

Platform: .NET MAUI|Category: General

You can set the aspect ratio using the Aspect property of the Image element. Common values include Aspect.AspectFill, Aspect.AspectFit, and Aspect.Fill.