Back to Devexpress

GalleryItemGroup.Items Property

wpf-devexpress-dot-xpf-dot-bars-dot-galleryitemgroup-b07a0a87.md

latest2.2 KB
Original Source

GalleryItemGroup.Items Property

Gets or sets the collection of gallery items displayed in the current group.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public GalleryItemCollection Items { get; set; }
vb
Public Property Items As GalleryItemCollection

Property Value

TypeDescription
GalleryItemCollection

A GalleryItemCollection object that stores gallery items displayed in the current group.

|

Remarks

Use this property to add gallery items to the group. Each item is represented by a GalleryItem class object.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Items 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.

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

xml
<dxb:GalleryItemGroup Name="myGalleryGroup1" Caption="Misc Group">
    <dxb:GalleryItemGroup.Items>
        <dxb:GalleryItem Caption="Schedule" Description="Show schedule" Glyph="pack://application:,,,/Images/address-16x16.png"/>

See Also

GalleryItemGroup Class

GalleryItemGroup Members

DevExpress.Xpf.Bars Namespace