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.v20.1.dll

Declaration

public class GalleryControl :
    ContentControl,
    INavigationOwner,
    IBarsNavigationSupport,
    IManipulationClient
Public Class GalleryControl
    Inherits ContentControl
    Implements INavigationOwner,
               IBarsNavigationSupport,
               IManipulationClient

Related API Members

The following members accept/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.

Examples

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
See Also