Back to Devexpress

Gallery.ItemCaptionVerticalAlignment Property

wpf-devexpress-dot-xpf-dot-bars-dot-gallery-67866992.md

latest3.6 KB
Original Source

Gallery.ItemCaptionVerticalAlignment Property

Gets or sets the vertical alignment of a gallery item’s caption. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public VerticalAlignment ItemCaptionVerticalAlignment { get; set; }
vb
Public Property ItemCaptionVerticalAlignment As VerticalAlignment

Property Value

TypeDescription
VerticalAlignment

A VerticalAlignment value specifying the vertical alignment of a gallery item’s caption.

|

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 ItemCaptionVerticalAlignment property specifies the vertical alignment of the item’s caption within the Content Grid’s Caption cell:

To specify the alignment of the Content Grid within the Content Region, see Gallery.ItemContentHorizontalAlignment and Gallery.ItemContentVerticalAlignment.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ItemCaptionVerticalAlignment 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-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml#L217

xml
ItemChecked="FontFamilyGallery_ItemChecked"
ItemCaptionVerticalAlignment="Center">
   <dxb:Gallery.Groups>

See Also

ItemCaptionHorizontalAlignment

ItemCaptionVerticalAlignment

ItemContentHorizontalAlignment

ItemContentVerticalAlignment

ItemDescriptionHorizontalAlignment

ItemDescriptionVerticalAlignment

ItemGlyphHorizontalAlignment

ItemGlyphVerticalAlignment

ItemGlyphLocation

Caption

Description

Glyph

Gallery Class

Gallery Members

DevExpress.Xpf.Bars Namespace