Back to Devexpress

Gallery.IsGroupCaptionVisible Property

wpf-devexpress-dot-xpf-dot-bars-dot-gallery-1a11ce1b.md

latest4.8 KB
Original Source

Gallery.IsGroupCaptionVisible Property

Gets or sets whether gallery groups captions (GalleryItemGroup.Caption) are visible in the current gallery. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public DefaultBoolean IsGroupCaptionVisible { get; set; }
vb
Public Property IsGroupCaptionVisible As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

A DefaultBoolean value that specifies the visibility of gallery groups captions.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

If the IsGroupCaptionVisible property is set to Default, the visibility of gallery groups captions is different for different containers:

  • If the current gallery is an in-Ribbon gallery, the captions of gallery groups are hidden.
  • If the current gallery is displayed within a dropdown window or GalleryControl, gallery group captions are visible.

You can use the GalleryItemGroup.IsCaptionVisible property to control the visibility of captions for individual groups, overriding the IsGroupCaptionVisible setting.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsGroupCaptionVisible 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-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml#L213

xml
ItemCheckMode="Single"
IsGroupCaptionVisible="False"
IsItemCaptionVisible="False"

wpf-spreadsheet-assign-custom-in-place-editors/CS/WpfSpreadsheet_CustomCellEditors/MainWindow.xaml#L835

xml
<dxr:RibbonGalleryBarItem.Gallery>
    <dxb:Gallery ColCount="6" GroupTemplate="{Binding ChartLayoutGalleryGroupTemplate, Mode=OneTime, Source={StaticResource defaultBarItemTemplates}}" GroupsSource="{Binding ChartLayoutGalleryGroups, ElementName=spreadsheetControl}" IsItemGlyphVisible="True" IsGroupCaptionVisible="False" IsItemDescriptionVisible="False" MinColCount="3" />
</dxr:RibbonGalleryBarItem.Gallery>

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

xml
<dxr:RibbonGalleryBarItem.Gallery>
    <dxb:Gallery ColCount="6" GroupTemplate="{Binding ChartLayoutGalleryGroupTemplate, Mode=OneTime, Source={StaticResource defaultBarItemTemplates}}" GroupsSource="{Binding ChartLayoutGalleryGroups, ElementName=spreadsheetControl}" IsItemGlyphVisible="True" IsGroupCaptionVisible="False" IsItemDescriptionVisible="False" MinColCount="3" />
</dxr:RibbonGalleryBarItem.Gallery>

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

xml
ItemCheckMode="None"
IsGroupCaptionVisible="True"
IsItemCaptionVisible="True"

See Also

Caption

IsCaptionVisible

Gallery Class

Gallery Members

DevExpress.Xpf.Bars Namespace