Back to Devexpress

Gallery.Groups Property

wpf-devexpress-dot-xpf-dot-bars-dot-gallery-9c6788fc.md

latest2.4 KB
Original Source

Gallery.Groups Property

Gets a collection of item groups owned by the gallery.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public GalleryItemGroupCollection Groups { get; }
vb
Public ReadOnly Property Groups As GalleryItemGroupCollection

Property Value

TypeDescription
GalleryItemGroupCollection

A GalleryItemGroupCollection object that represents the collection of item groups owned by the ribbon gallery.

|

Remarks

Use the Groups property to add gallery item groups (GalleryItemGroup) to the current gallery.

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

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

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

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

See Also

Gallery Class

Gallery Members

DevExpress.Xpf.Bars Namespace