Visual Brush - Sizing Property

Behavior of the image when it does not fit the space available

Member of Visual Brush (PRIM_VS.VisualBrush)

Data Type - Enumeration

Details

The Sizing property describes how the image of the Control is stretched or squashed to fit in to control or a tile within the control.

Allowed Values

Enum Value

Description

BestFit

The image is resized to fit in the available space while still maintaining its aspect ratio

Cropped

The image is resized to fit the available space while still maintaining its aspect ratio. Once either the horizontal or vertical fits within the control, not further resizing is done. This may result in some of the image not being visible.

FitBoth

The image is resized to precisely fit the horizontal and vertical space. The aspect ratio is not maintained. This may result in the image appearing stretched.

None

The image is not resized in any way


See also

All Component Classes

Technical Reference