Bar

Gallery.ItemContentHorizontalAlignment Property

Gets or sets the horizontal 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.v20.1.dll

Declaration

public HorizontalAlignment ItemContentHorizontalAlignment { get; set; }
Public Property ItemContentHorizontalAlignment As HorizontalAlignment

Property Value

Type Description
HorizontalAlignment

A HorizontalAlignment value specifying the horizontal 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 ItemContentHorizontalAlignment property specifies the horizontal alignment of the Content Grid within the Content Region:

GalleryItem_Alignment

If the ItemContentHorizontalAlignment property is set to Stretch, the Content Grid is stretched to the width of the Content Region. Use the Gallery.ItemCaptionHorizontalAlignment property to specify the horizontal alignment of a gallery item's caption within the Content Grid's Caption cell.

See Also