Skip to main content

BaseGallery.UseMaxImageSize Property

Gets or sets whether gallery item images have the same display size as the biggest image.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool UseMaxImageSize { get; set; }

Property Value

Type Default Description
Boolean false

true if gallery item images have the same display size as the biggest image; otherwise, false.

Remarks

You can manually set the display size of gallery item images via the BaseGallery.ImageSize property.

However, it’s possible to allow the display size to be calculated automatically, based on the biggest image among gallery items. To accomplish this, set the UseMaxImageSize property to true. In this instance, the biggest image among all gallery items will be located. All other gallery item images will have the display size matching the size of the biggest image. If the UseMaxImageSize property is set to true, the BaseGallery.ImageSize property is ignored.

See Also