This attribute is used to decide how the image will be stretched to fit the element.
Format:
ImageStretch="Fill"
Following is the list of values applicable to ImageStretch:
|
Value |
Description |
|
None |
The image does not stretch to fill the element. |
|
Fill |
The image is scaled to fit the element dimensions. However, the aspect ratio of the image is preserved. |
|
Uniform |
The image is scaled so that it completely fills the element area but preserves its original aspect ratio. |
|
UniformToFill |
The image is scaled to fit the element. Because the height and width of the image are scaled independently, the original aspect ratio of the image might not be preserved. That is, the image might be distorted in order to completely fill the element. |
This attribute applies to:
Example:
<vc:DataSeries ImageStretch="Fill" ... />