wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-fccf02e8.md
Gets or sets a template that describes node summaries. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public DataTemplate NodeSummaryGeneratorTemplate { get; set; }
Public Property NodeSummaryGeneratorTemplate As DataTemplate
| Type | Description |
|---|---|
| DataTemplate |
The summary item template.
|
The TreeListView supports summary binding. The TreeListView can be bound to a collection of objects containing summary settings, described in a Model or ViewModel, minimizing the need for ‘code-behind’. The TreeListView generates summary items based on templates. A template that describes node summaries should be assigned to the view’s NodeSummaryGeneratorTemplate property.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NodeSummaryGeneratorTemplate 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-tree-list-generate-node-summaries-from-collection/CS/TreeList_DataBinding/MainWindow.xaml#L33
KeyFieldName="ID" ParentFieldName="ParentID"
NodeSummarySource="{Binding SummaryList}" NodeSummaryGeneratorTemplate="{StaticResource SummaryTemplate}" ShowNodeFooters="True"/>
</dxg:TreeListControl.View>
See Also