Back to Devexpress

Gallery.SizeMode Property

wpf-devexpress-dot-xpf-dot-bars-dot-gallery-855d0ff6.md

latest3.4 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public GallerySizeMode SizeMode { get; set; }
vb
Public Property SizeMode As GallerySizeMode

Property Value

TypeDescription
GallerySizeMode

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

|

Available values:

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

wpf-spreadsheet-bind-spreadsheet-to-ms-sql-server-database/CS/WpfSpreadsheet_BindToDataSource/MainWindow.xaml#L522

xml
<dxr:GalleryDropDownPopupMenu.Gallery>
    <dxb:Gallery AllowFilter="False" ColCount="4" ItemDescriptionHorizontalAlignment="Left" IsItemCaptionVisible="False" IsItemDescriptionVisible="False" SizeMode="None">
        <dxb:GalleryItemGroup x:Name="grpInsertChartColumn2DCommandGroup" Caption="{Binding ConverterParameter=MenuCmd_InsertChartColumn2DCommandGroup, Converter={StaticResource stringIdConverter}, Mode=OneTime, Source={StaticResource stringIdConverter}}" IsCaptionVisible="True">

wpf-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml#L235

xml
ItemChecked="FontFamilyGallery_ItemChecked"
SizeMode="Vertical">
   <dxb:Gallery.Groups>

See Also

ColCount

ItemAutoWidth

RowCount

Gallery Class

Gallery Members

DevExpress.Xpf.Bars Namespace