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

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

NuGet Package: DevExpress.Win.Navigation

#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