Back to Devexpress

Gallery.ItemDescriptionHorizontalAlignment Property

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

latest4.9 KB
Original Source

Gallery.ItemDescriptionHorizontalAlignment Property

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

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public HorizontalAlignment ItemDescriptionHorizontalAlignment { get; set; }
vb
Public Property ItemDescriptionHorizontalAlignment As HorizontalAlignment

Property Value

TypeDescription
HorizontalAlignment

A HorizontalAlignment value specifying the horizontal alignment of a gallery item’s description.

|

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 ItemDescriptionHorizontalAlignment property specifies the horizontal alignment of the item’s description within the Content Grid’s Description cell:

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the ItemDescriptionHorizontalAlignment 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-spreadsheet-assign-custom-in-place-editors/CS/WpfSpreadsheet_CustomCellEditors/MainWindow.xaml#L520

xml
<dxr:GalleryDropDownPopupMenu.Gallery>
    <dxb:Gallery ColCount="4" ItemDescriptionHorizontalAlignment="Left" IsItemCaptionVisible="False" IsItemDescriptionVisible="False">
        <dxb:GalleryItemGroup x:Name="grpInsertChartColumn2DCommandGroup" Caption="{Binding ConverterParameter=MenuCmd_InsertChartColumn2DCommandGroup, Converter={StaticResource stringIdConverter}, Mode=OneTime, Source={StaticResource stringIdConverter}}" IsCaptionVisible="True">

wpf-spreadsheet-bind-spreadsheet-to-ms-sql-server-database/CS/WpfSpreadsheet_BindToDataSource/MainWindow.xaml#L522

xml
<dxr:GalleryDropDownPopupMenu.Gallery>
    <dxb:Gallery AllowFilter="False" ColCount="4" ItemDescriptionHorizontalAlignment="Left" IsItemCaptionVisible="False" IsItemDescriptionVisible="False" SizeMode="None">
        <dxb:GalleryItemGroup x:Name="grpInsertChartColumn2DCommandGroup" Caption="{Binding ConverterParameter=MenuCmd_InsertChartColumn2DCommandGroup, Converter={StaticResource stringIdConverter}, Mode=OneTime, Source={StaticResource stringIdConverter}}" IsCaptionVisible="True">

See Also

ItemCaptionHorizontalAlignment

ItemCaptionVerticalAlignment

ItemContentHorizontalAlignment

ItemContentVerticalAlignment

ItemDescriptionHorizontalAlignment

ItemDescriptionVerticalAlignment

ItemGlyphHorizontalAlignment

ItemGlyphVerticalAlignment

ItemGlyphLocation

Caption

Description

Glyph

Gallery Class

Gallery Members

DevExpress.Xpf.Bars Namespace