FillModeEnum

BrowseName: FillModeEnum

Values

Value

DisplayName

Description

0

Fit

Keep the original proportions of the image when it is resized. When both dimensions are set to “Auto”, the original size of the image is used. Only when one dimension is set is the other dimension is calculated automatically, maintaining the proportions. When both dimensions are set, the image is resized so that it fits inside the UI control, maintaining the proportions.

1

Stretch

Does not keep the original proportions of the image. When both dimensions are set to “Auto”, the original size of the image is used. When one dimension is set, the other dimension is calculated using the original image dimension. If both dimensions are set, the image is stretched so that it corresponds to the size of its container.