Back to Devexpress

CollectionViewLink.DetailTemplate Property

wpf-devexpress-dot-xpf-dot-printing-dot-collectionviewlink.md

latest3.6 KB
Original Source

CollectionViewLink.DetailTemplate Property

Specifies the template for the document’s detail area.

Namespace : DevExpress.Xpf.Printing

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

NuGet Package : DevExpress.Wpf.Printing

Declaration

csharp
public DataTemplate DetailTemplate { get; set; }
vb
Public Property DetailTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A DataTemplate object.

|

Remarks

Use the DetailTemplate property to define a data template for a document’s detail area.

You can customize other document areas via the corresponding properties provided by the TemplatedLink class.

For more information on document areas, see Printing Links.

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

reporting-wpf-use-collectionview-link/CS/Window1.xaml.cs#L25

csharp
// Provide export templates.
link.DetailTemplate = (DataTemplate)Resources["monthNameTemplate"];
link.GroupInfos.Add(new GroupInfo((DataTemplate)Resources["monthQuarterTemplate"]));

reporting-wpf-use-collectionview-link/VB/Window1.xaml.vb#L25

vb
' Provide export templates.
link.DetailTemplate = CType(Resources("monthNameTemplate"), DataTemplate)
link.GroupInfos.Add(New GroupInfo(CType(Resources("monthQuarterTemplate"), DataTemplate)))

See Also

Printing Links

CollectionViewLink Class

CollectionViewLink Members

DevExpress.Xpf.Printing Namespace