Back to Devexpress

Gallery.ItemDescriptionTemplate Property

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

latest2.3 KB
Original Source

Gallery.ItemDescriptionTemplate Property

Gets or sets the template used to display a gallery item’s GalleryItem.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 DataTemplate ItemDescriptionTemplate { get; set; }
vb
Public Property ItemDescriptionTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A DataTemplate that defines the visualization of a gallery item’s GalleryItem.Description.

|

Remarks

See the Data Templating Overview topic to learn more.

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

create-wpf-gallery-control/CS/GalleryControl_Ex/MainWindow.xaml#L23

xml
FilterCaption="(click to filter groups)"
ItemDescriptionTemplate="{StaticResource ResourceKey=myItemDescriptionTemplate}"
ItemContentHorizontalAlignment="Left"

See Also

Description

Gallery Class

Gallery Members

DevExpress.Xpf.Bars Namespace