Back to Devexpress

GalleryControl.Gallery Property

wpf-devexpress-dot-xpf-dot-bars-dot-gallerycontrol.md

latest2.5 KB
Original Source

GalleryControl.Gallery Property

Gets or sets the gallery displayed by the GalleryControl.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public Gallery Gallery { get; set; }
vb
Public Property Gallery As Gallery

Property Value

TypeDescription
Gallery

A Gallery object displayed by the GalleryControl.

|

Remarks

Use the Gallery property to assign a Gallery object to the GalleryControl. Visual settings (the number of visible columns, gallery groups, etc.) are specified by the assigned object.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Gallery 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-mvvm-behaviors-gallery-based-theme-selector/CS/GalleryThemeSelectorBehavior/MainWindow.xaml#L13

xml
<dxb:GalleryControl>
    <dxb:GalleryControl.Gallery>
        <dxb:Gallery

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

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

See Also

GalleryControl Class

GalleryControl Members

DevExpress.Xpf.Bars Namespace