[]
        
(Showing Draft Content)

C1.DataCollection.C1PagedDataCollection-1

C1PagedDataCollection<T> Class

Collection that wraps another collection to be shown in pages of a maximum number of items.

Inheritance
C1PagedDataCollection<T>
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public class C1PagedDataCollection<T> : C1WrapDataCollection<T>, IDataCollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T>, INotifyPropertyChanged, IDisposable, ISupportSorting, ISupportFiltering, ISupportGrouping, ISupportVirtualization, ISupportConnection, ISupportAsyncLoading<T>, ISupportIncrementalLoading, ISupportRefreshing, ISupportRangeEditing<T>, ISupportEditing<T>, ISupportCreateNewItem<T>, ISupportSource, ISupportPaging where T : class?
Type Parameters
Name Description
T

Constructors

Name Description
C1PagedDataCollection(IEnumerable)

Initializes a new instance of the C1PagedDataCollection<T> class.

Properties

Name Description
CurrentPage

Gets the current page number.

PageSize

Gets or sets the maximum number of items per page.

PagesCount

Gets the total number of pages in the collection.

TotalCount

Gets the total number of items in the collection.

Methods

Name Description
Dispose(bool)

Called to dispose resources.

MoveToPageAsync(int, CancellationToken)

Moves to the page pageIndex.

OnSourceCollectionChanged(object?, NotifyCollectionChangedEventArgs)

Called when the source collection changed.

Extension Methods