Skip to main content

Aspect Ratio

An aspect ratio can be defined by providing the controlling axis relationship and then the actual ratio.

  • WidthControlsHeight The width drives the height
  • HeightControlsWidth The height drives the width
  • ImageAspect The aspect ratio is derived from the element's BackgroundImage
style aspect {
AspectRatio = WidthControlsHeight 2 : 1;
AspectRatio = HeightControlsWidth 4 : 5;
AspectRatio = ImageAspect;
}