Skip to main content
Bar

Gallery.ItemContentVerticalAlignment Property

Gets or sets the vertical alignment of a Content Grid (displaying a gallery item’s caption and description) within a gallery item. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public VerticalAlignment ItemContentVerticalAlignment { get; set; }

Property Value

Type Description
VerticalAlignment

A VerticalAlignment value specifying the vertical alignment of a Content Grid within a gallery item.

Remarks

A gallery item consists of the Glyph and Content regions. The Content Region displays a Content Grid that displays the gallery item’s Caption and Description. The ItemContentVerticalAlignment property specifies the vertical alignment of the Content Grid within the Content Region:

GalleryItem_Alignment

If the ItemContentVerticalAlignment property is set to Stretch, the Content Grid is stretched to the height of the Content Region. Use the Gallery.ItemCaptionVerticalAlignment property to specify the vertical alignment of a gallery item’s caption within the Content Grid’s Caption cell.

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

See Also