Back to Devexpress

PagedAsyncSource.GetTotalSummariesCommand Property

wpf-devexpress-dot-xpf-dot-data-dot-pagedasyncsource-f29754d2.md

latest3.6 KB
Original Source

PagedAsyncSource.GetTotalSummariesCommand Property

Gets or sets a command that allows you to get total summaries.

Namespace : DevExpress.Xpf.Data

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public ICommand<GetSummariesAsyncArgs> GetTotalSummariesCommand { get; set; }
vb
Public Property GetTotalSummariesCommand As ICommand(Of GetSummariesAsyncArgs)

Property Value

TypeDescription
ICommand<GetSummariesAsyncArgs>

A command that allows you to get total summaries.

|

Remarks

Bind a command to the GetTotalSummariesCommand property to maintain a clean MVVM pattern. The command works like a PagedAsyncSource.GetTotalSummaries event handler and allows you to process summaries in a ViewModel.

Refer to the following help topic for more information: Display Summaries.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetTotalSummariesCommand 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.

how-to-bind-wpf-grid-to-data/CS/ViewModel/EFCore/PagedAsyncSource/MainWindow.xaml#L19

xml
PageNavigationMode="ArbitraryWithTotalPageCount" FetchPageCommand="{Binding FetchPageCommand}"
                         GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}" />
</dxg:GridControl.ItemsSource>

wpf-data-grid-implement-crud-operations/CS/ViewModel/EFCore/PagedAsyncSource/MainWindow.xaml#L31

xml
PageNavigationMode="ArbitraryWithTotalPageCount" FetchPageCommand="{Binding FetchPageCommand}"
                         GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}" />
</dxg:GridControl.ItemsSource>

wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceMVVMSample/MainWindow.xaml#L21

xml
FetchPageCommand="{Binding FetchIssuesCommand}"
GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}"
GetUniqueValuesCommand="{Binding GetUniqueValuesCommand}"/>

See Also

PagedAsyncSource Class

PagedAsyncSource Members

DevExpress.Xpf.Data Namespace