Skip to main content
A newer version of this page is available. .
Bar

GalleryControl Class

A control that displays an image gallery and is capable of categorizing items into groups.

Namespace: DevExpress.Xpf.Bars

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

Declaration

public class GalleryControl :
    ContentControl,
    INavigationOwner,
    IBarsNavigationSupport,
    IManipulationClient

The following members return GalleryControl objects:

Remarks

Use the GalleryControl.Gallery property to specify a gallery displayed by the GalleryControl. Visual settings, such as the number of visible columns, the visibility of the filter panel, etc, are controlled by the assigned Gallery object.

Example

This example demonstrates how to create a GalleryControl containing two gallery item groups.

The following image shows the result:

GalleryControl_Ex

Class MainWindow 

    Private Sub Gallery_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.Xpf.Bars.GalleryItemEventArgs)
        MessageBox.Show("The " + e.Item.Caption + " item has been clicked")
    End Sub
End Class

The following code snippets (auto-collected from DevExpress Examples) contain references to the GalleryControl class.

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.

See Also