Back to Devexpress

BaseGallery.UseMaxImageSize Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-basegallery-e7ef78d4.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool UseMaxImageSize { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Property UseMaxImageSize As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

FixedImageSize

ImageSize

ItemAutoSizeMode

ItemSize

BaseGallery Class

BaseGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace