Back to Devexpress

Gallery.ColCount Property

wpf-devexpress-dot-xpf-dot-bars-dot-gallery-c5bfbd57.md

latest4.4 KB
Original Source

Gallery.ColCount Property

Gets or sets the number of visible columns of gallery items in the 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 int ColCount { get; set; }
vb
Public Property ColCount As Integer

Property Value

TypeDescription
Int32

An integer value that specifies the number of visible columns of gallery items in the gallery.

|

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

xml
<dxr:GalleryDropDownPopupMenu.Gallery>
    <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">

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

xml
<dxr:RibbonGalleryBarItem.Gallery>
    <dxb:Gallery MinColCount="1" ColCount="5"
     ItemCheckMode="Single"

wpf-mvvm-behaviors-gallery-based-theme-selector/CS/GalleryThemeSelectorBehavior/MainWindow.xaml#L15

xml
<dxb:Gallery
    ColCount="3"
    IsItemCaptionVisible="True"

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

xml
<dxb:GalleryControl.Gallery>
    <dxb:Gallery ColCount="2"
         ItemCheckMode="None"

See Also

ItemAutoWidth

MinColCount

RowCount

SizeMode

GetActualColCount()

Gallery Class

Gallery Members

DevExpress.Xpf.Bars Namespace