A newer version of this page is available. Switch to the current version.

TileItemElement.ImageScaleMode Property

Gets or sets the way a glyph is stretched within the current TileItemElement.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll


public TileItemImageScaleMode ImageScaleMode { get; set; }

Property Value

Type Default Description


A TileItemImageScaleMode enumerator value that specifies the way a glyph is stretched within the current TileItemElement.

Available values:

Name Description

Acts as the TileItemImageScaleMode.NoScale value.


An image is displayed in its original size and arranged according to the TileItem.ImageAlignment property.


A glyph is stretched in order to fit within the area of a tile item.


A glyph is stretched vertically. Its width remains unchanged.


A glyph is stretched horizontally. Its height remains unchanged.


Zooms an image proportionally so that it's displayed within the client area in its entirety.


Zooms an image proportionally, allowing its smaller side (width or height) to be displayed in its entirety. The image is centered, so the larger side (height or width) will not be displayed in its entirety.


An image is displayed as is if its actual size is smaller than the size of the container. If the image size is larger than the container's size, the image is shrunk proportionally to fit the container's bounds.


A TileItemElement can have text content (specified via the TileItemElement.Text property) and a glyph (see the TileItemElement.Image). The ImageScaleMode property value specifies the way a glyph is stretched inside its parent element. The TileItemElement.ImageAlignment property sets this icon's alignment mode.

This property has a higher priority than the TileControl.ItemImageScaleMode property that specifies a common stretch mode for all TileItems within a tile control.

A tile item can use multiple elements to build its content. If so, to customize the glyph of the first element within the TileItem.Elements collection, you can either use the ImageScaleMode or the TileItem.ImageScaleMode property.

See Also