Back to Devexpress

GalleryDropDownPopupMenu.Gallery Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-gallerydropdownpopupmenu.md

latest3.7 KB
Original Source

GalleryDropDownPopupMenu.Gallery Property

Gets or sets the gallery displayed by the GalleryDropDownPopupMenu. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

Assembly : DevExpress.Xpf.Ribbon.v25.2.dll

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public Gallery Gallery { get; set; }
vb
Public Property Gallery As Gallery

Property Value

TypeDescription
Gallery

A Gallery object displayed by the current GalleryDropDownPopupMenu.

|

Remarks

Use the Gallery property to specify the gallery of items for the GalleryDropDownPopupMenu.

The number of initially visible columns and rows in the gallery is specified by the GalleryDropDownPopupMenu.InitialVisibleColCount and GalleryDropDownPopupMenu.InitialVisibleRowCount properties, respectively.

To display bar item links below the gallery, see the inherited PopupMenu.ItemLinks property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Gallery 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-assign-custom-in-place-editors/CS/WpfSpreadsheet_CustomCellEditors/MainWindow.xaml#L519

xml
<dxr:GalleryDropDownPopupMenu>
    <dxr:GalleryDropDownPopupMenu.Gallery>
        <dxb:Gallery ColCount="4" ItemDescriptionHorizontalAlignment="Left" IsItemCaptionVisible="False" IsItemDescriptionVisible="False">

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

xml
<dxr:GalleryDropDownPopupMenu>
    <dxr:GalleryDropDownPopupMenu.Gallery>
        <dxb:Gallery AllowFilter="False" ColCount="4" ItemDescriptionHorizontalAlignment="Left" IsItemCaptionVisible="False" IsItemDescriptionVisible="False" SizeMode="None">

See Also

InitialVisibleColCount

InitialVisibleRowCount

ItemLinks

GalleryDropDownPopupMenu Class

GalleryDropDownPopupMenu Members

DevExpress.Xpf.Ribbon Namespace