Back to Devexpress

SummaryArgs.SummaryProcess Property

corelibraries-devexpress-dot-mvvm-dot-xpf-dot-summaryargs.md

latest3.4 KB
Original Source

SummaryArgs.SummaryProcess Property

Gets the calculation stage.

Namespace : DevExpress.Mvvm.Xpf

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

csharp
public SummaryProcess SummaryProcess { get; }
vb
Public ReadOnly Property SummaryProcess As SummaryProcess

Property Value

TypeDescription
DevExpress.Mvvm.Xpf.SummaryProcess

The calculation stage.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the SummaryProcess 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-data-grid-summarize-empty-cells/CS/CustomSummary_EmptyCells_MVVM/MainViewModel.cs#L28

csharp
return;
if(args.SummaryProcess == SummaryProcess.Start) {
    args.TotalValue = 0;

wpf-tree-list-calculate-custom-node-summaries/CS/CustomNodeSummaries_MVVM/MainViewModel.cs#L31

csharp
if(args.IsNodeSummary && args.SummaryItem.PropertyName == nameof(Employee.Statistics)) {
    if(args.SummaryProcess == SummaryProcess.Calculate) {
        args.TotalValue = Convert.ToDouble(args.TotalValue) + (double)args.FieldValue;

wpf-data-grid-summarize-empty-cells/VB/CustomSummary_EmptyCells_MVVM/MainViewModel.vb#L33

vb
If Not Equals(args.SummaryItem.PropertyName, "Number") Then Return
If args.SummaryProcess = SummaryProcess.Start Then
    args.TotalValue = 0

wpf-tree-list-calculate-custom-node-summaries/VB/CustomNodeSummaries_MVVM/MainViewModel.vb#L37

vb
If args.IsNodeSummary AndAlso Equals(args.SummaryItem.PropertyName, NameOf(Employee.Statistics)) Then
    If args.SummaryProcess = SummaryProcess.Calculate Then
        args.TotalValue = Convert.ToDouble(args.TotalValue) + CDbl(args.FieldValue)

See Also

SummaryArgs Class

SummaryArgs Members

DevExpress.Mvvm.Xpf Namespace