Back to Devexpress

GalleryItemGroup Class

wpf-devexpress-dot-xpf-dot-bars-6be8735e.md

latest5.1 KB
Original Source

GalleryItemGroup Class

Represents a group of gallery items within a gallery.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class GalleryItemGroup :
    FrameworkContentElement
vb
Public Class GalleryItemGroup
    Inherits FrameworkContentElement

The following members return GalleryItemGroup objects:

Remarks

A gallery consists of gallery groups which are represented by the GalleryItemGroup objects. A gallery’s groups can be accessed via the Gallery.Groups property. Each gallery group can display multiple gallery items (GalleryItem objects). Use the GalleryItemGroup.Items property to specify gallery items for the gallery group.

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

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#L521

xml
<dxb:Gallery ColCount="4" ItemDescriptionHorizontalAlignment="Left" IsItemCaptionVisible="False" IsItemDescriptionVisible="False">
    <dxb:GalleryItemGroup x:Name="grpInsertChartColumn2DCommandGroup" Caption="{Binding ConverterParameter=MenuCmd_InsertChartColumn2DCommandGroup, Converter={StaticResource stringIdConverter}, Mode=OneTime, Source={StaticResource stringIdConverter}}" IsCaptionVisible="True">
        <dxb:GalleryItem x:Name="biInsertChartColumnClustered2D" Command="{Binding InsertChartColumnClustered2D, Mode=OneTime, Source={StaticResource commands}}" />

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

xml
<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">
        <dxb:GalleryItem x:Name="biInsertChartColumnClustered2D" Command="{Binding InsertChartColumnClustered2D, Mode=OneTime, Source={StaticResource commands}}" />

create-wpf-gallery-control/CS/GalleryControl_Ex/MainWindow.xaml#L27

xml
<dxb:Gallery.Groups>
    <dxb:GalleryItemGroup Name="myGalleryGroup1" Caption="Misc Group">
        <dxb:GalleryItemGroup.Items>

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

xml
<dxb:Gallery.Groups>
    <dxb:GalleryItemGroup Name="FontFamilyGalleryGroup" />
</dxb:Gallery.Groups>

Inheritance

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement GalleryItemGroup

See Also

GalleryItemGroup Members

Gallery

GalleryItem

DevExpress.Xpf.Bars Namespace