All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TileViewItemOptions.StretchItems Property

Gets or sets whether tiles are stretched to fit the View's width/height (depending on the Orientation setting). The property is ignored in List layout mode.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[XtraSerializableProperty]
[DefaultValue(false)]
public bool StretchItems { get; set; }
<XtraSerializableProperty>
<DefaultValue(False)>
Public Property StretchItems As Boolean

Property Value

Type Default Description
Boolean

false

true, to stretch the width/height of tiles so they fit the View's width/height; false, if the width/height of tiles is not affected by the View's width/height.

Property Paths

You can access this nested property as listed below:

Object Type Path to StretchItems
TileView
.OptionsTiles.StretchItems

Remarks

If the StretchItems property is set to false, tile display size is specified by the TileView.OptionsTiles.ItemSize property.

Set the StretchItems property to true to enable tile width/height stretching (depending on the Orientation setting).

NOTE

The StretchItems property has no effect in List layout mode, in which tiles are always stretched to fit the View's width/height.

Tiles arranged in columns (Orientation=Vertical)

In stretch mode, the Tile View displays the specified number of tile columns (TileView.OptionsTiles.ColumnCount) while stretching them to the View's width.
The following images demonstrate tile stretching for tiles arranged in two columns (TileView.OptionsTiles.ColumnCount = 2).

The TileView.OptionsTiles.ItemSize.Width value is ignored. Only the TileView.OptionsTiles.ItemSize.Height value is taken into account.

Tiles arranged in rows (Orientation=Horizontal)

In horizontal orienation mode, the Tile View displays the specified number of tile rows (TileViewItemOptions.RowCount) while stretching them to the View's height. The following images demonstrate stretched tiles arranged in two rows (TileView.OptionsTiles.RowCount = 2).

The TileView.OptionsTiles.ItemSize.Height value is ignored. Only the TileView.OptionsTiles.ItemSize.Width value is taken into account.

See Also