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.1.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.