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

InDropDownGallery.SizeMode Property

Gets or sets how the Dropdown control that owns the current gallery can be resized.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(GallerySizeMode.Default)]
[DXCategory("Layout")]
public GallerySizeMode SizeMode { get; set; }

#Property Value

Type Default Description
GallerySizeMode Default

A GallerySizeMode value that specifies the current size mode.

Available values:

Name Description
Default

The same as the GallerySizeMode.None option.

None

A dropdown gallery cannot be resized.

Vertical

A dropdown gallery can only be resized vertically.

Both

Allows a dropdown gallery to be resized horizontally and vertically.

#Remarks

When a Dropdown control that owns a dropdown gallery is opened, its initial size is calculated based on the control’s contents (the contents of the dropdown gallery plus additional commands that have been added to the control’s ItemLinks collection). The SizeMode property can be used to enable the Dropdown control’s resizing feature. If the SizeMode property is set to Both the control can be resized both vertically and horizontally via the size grip displayed at the bottom of the dropdown.

See Also