Lire en anglais Modifier

Partager via


IncrementalLoadingCollection<TSource,IType> Class

Definition

This class represents an ObservableCollection<T> whose items can be loaded incrementally.

C#
public class IncrementalLoadingCollection<TSource,IType> : System.Collections.ObjectModel.ObservableCollection<IType>, Windows.UI.Xaml.Data.ISupportIncrementalLoading where TSource : IIncrementalSource<IType>

Type Parameters

TSource

The data source that must be loaded incrementally.

IType

The type of collection items.

Inheritance
IncrementalLoadingCollection<TSource,IType>
Implements
Windows.UI.Xaml.Data.ISupportIncrementalLoading

Constructors

IncrementalLoadingCollection<TSource,IType>(Int32, Action, Action, Action<Exception>)

Initializes a new instance of the IncrementalLoadingCollection<TSource,IType> class optionally specifying how many items to load for each data page.

IncrementalLoadingCollection<TSource,IType>(TSource, Int32, Action, Action, Action<Exception>)

Initializes a new instance of the IncrementalLoadingCollection<TSource,IType> class using the specified IIncrementalSource<TSource> implementation and, optionally, how many items to load for each data page.

Properties

CurrentPageIndex

Gets or sets a value indicating The zero-based index of the current items page.

HasMoreItems

Gets a value indicating whether the collection contains more items to retrieve.

IsLoading

Gets a value indicating whether new items are being loaded.

ItemsPerPage

Gets a value indicating how many items that must be retrieved for each incremental call.

OnEndLoading

Gets or sets an Action that is called when a retrieval operation ends.

OnError

Gets or sets an Action that is called if an error occurs during data retrieval. The actual Exception is passed as an argument.

OnStartLoading

Gets or sets an Action that is called when a retrieval operation begins.

Source

Gets a value indicating the source of incremental loading.

Methods

LoadDataAsync(CancellationToken)

Actually performs the incremental loading.

LoadMoreItemsAsync(UInt32)

Initializes incremental loading from the view.

RefreshAsync()

Clears the collection and triggers/forces a reload of the first page

Applies to

Produit Versions
Windows Community Toolkit 6.1.1, 7.0.0, 7.1.0

See also