wpf-devexpress-dot-xpf-dot-data-dot-pagedasyncsource.md
Gets or sets a command that allows you to fetch page rows.
Namespace : DevExpress.Xpf.Data
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public ICommand<FetchPageAsyncArgs> FetchPageCommand { get; set; }
Public Property FetchPageCommand As ICommand(Of FetchPageAsyncArgs)
| Type | Description |
|---|---|
| ICommand<FetchPageAsyncArgs> |
A command that allows you to fetch page rows.
|
Bind a command to the FetchPageCommand property to maintain a clean MVVM pattern. The command works like a PagedAsyncSource.FetchPage event handler and allows you to specify custom group operations in a ViewModel.
Refer to the following help topic for more information: Fetch Data.
The following code snippets (auto-collected from DevExpress Examples) contain references to the FetchPageCommand 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#L18
<dx:PagedAsyncSource ElementType="local_issues:Issue" KeyProperty="Id"
PageNavigationMode="ArbitraryWithTotalPageCount" FetchPageCommand="{Binding FetchPageCommand}"
GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}" />
wpf-data-grid-implement-crud-operations/CS/ViewModel/EFCore/PagedAsyncSource/MainWindow.xaml#L30
<dx:PagedAsyncSource ElementType="local_issues:Issue" KeyProperty="Id"
PageNavigationMode="ArbitraryWithTotalPageCount" FetchPageCommand="{Binding FetchPageCommand}"
GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}" />
wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceMVVMSample/MainWindow.xaml#L20
PageNavigationMode="ArbitraryWithTotalPageCount"
FetchPageCommand="{Binding FetchIssuesCommand}"
GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}"
See Also