wpf-devexpress-dot-xpf-dot-printing-dot-collectionviewlink.md
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
public DataTemplate DetailTemplate { get; set; }
Public Property DetailTemplate As DataTemplate
| Type | Description |
|---|---|
| DataTemplate |
A DataTemplate object.
|
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
// 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
' Provide export templates.
link.DetailTemplate = CType(Resources("monthNameTemplate"), DataTemplate)
link.GroupInfos.Add(New GroupInfo(CType(Resources("monthQuarterTemplate"), DataTemplate)))
See Also