Back to Devexpress

GalleryItemGroup.Caption Property

wpf-devexpress-dot-xpf-dot-bars-dot-galleryitemgroup-77fe4f9a.md

latest4.5 KB
Original Source

GalleryItemGroup.Caption Property

Specifies the caption of the GalleryItemGroup object. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public object Caption { get; set; }
vb
Public Property Caption As Object

Property Value

TypeDescription
Object

A string which specifies the caption of the GalleryItemGroup object.

|

Remarks

The visibility of group captions is controlled by the Gallery.IsGroupCaptionVisible and GalleryItemGroup.IsCaptionVisible properties.

To specify a template to present the group’s caption in a custom manner, use Gallery.GroupCaptionTemplate.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Caption 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#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>

See Also

GroupCaptionTemplate

GroupCaptionTextStyle

GroupCaptionHorizontalAlignment

GroupCaptionMargin

GroupCaptionVerticalAlignment

GalleryItemGroup Class

GalleryItemGroup Members

DevExpress.Xpf.Bars Namespace