Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TileItemElement.ImageSize Property

Gets or sets the image size for this TileItemElement.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.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