Skip to main content
Bar

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

Gallery.SizeMode Property

Gets or sets how a gallery, when it’s displayed within a dropdown window, can be resized. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public GallerySizeMode SizeMode { get; set; }

#Property Value

Type Description
GallerySizeMode

A GallerySizeMode value that specifies how the current dropdown gallery can be resized.

Available values:

Name Description
None

A dropdown gallery cannot be resized.

Vertical

A dropdown gallery can only be resized vertically.

Both

A dropdown gallery can be resized vertically and horizontally.

#Remarks

A gallery can be displayed within a dropdown window. Use the SizeMode property to allow the dropdown gallery to be resized. If the SizeMode property is set to Both, the gallery can be resized both vertically and horizontally via the size grip displayed at the bottom of the dropdown window.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SizeMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also