Skip to main content

TileItemElement.ImageSize Property

Gets or sets the image size for this TileItemElement.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
public Size ImageSize { get; set; }

Property Value

Type Description
Size

A Size structure that is the image size for this TileItemElement.

Remarks

To set an image for a TileItemElement, use its TileItemElement.Image property. Use the ImageSize property to set a custom image size for this image. Note that by default, the TileItemElement.ImageScaleMode property equals Default. This setting prohibits scaling an element image from its default to custom size. In order to apply a custom image size, set the TileItemElement.ImageScaleMode property to the required value.

The figure below illustrates a Tile with two elements. Each one contains the same 32x32 pixels image but in different sizes - default and custom. The custom image size is set via the ImageSize property to 64x64 pixels. The TileItemElement.ImageScaleMode property equals Stretch.

TileItemElement.ImageSize

See Also