[]
Collection which takes another collection as source.
public abstract class C1WrapDataCollection<S, T> : C1DataCollectionBase<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<S>, ISupportEditing<S>, ISupportCreateNewItem<S>, ISupportPaging, ISupportSource where S : class? where T : class?
Public MustInherit Class C1WrapDataCollection(Of S As Class, T As Class)
Inherits C1DataCollectionBase(Of T)
Implements IDataCollection(Of T), IReadOnlyList(Of T), IReadOnlyCollection(Of T), IEnumerable(Of T), IEnumerable, INotifyCollectionChanged, ISupportIndexing(Of T), INotifyPropertyChanged, IDisposable, ISupportSorting, ISupportFiltering, ISupportGrouping, ISupportVirtualization, ISupportConnection, ISupportAsyncLoading(Of T), ISupportIncrementalLoading, ISupportRefreshing, ISupportRangeEditing(Of S), ISupportEditing(Of S), ISupportCreateNewItem(Of S), ISupportPaging, ISupportSource
| Name | Description |
|---|---|
| S | The type of the items in the source collection. |
| T | The type of the items in the collection. |
| Name | Description |
|---|---|
| C1WrapDataCollection() | Initializes a new instance of the C1WrapDataCollection<S, T> class. |
| C1WrapDataCollection(IEnumerable) | Initializes a new instance of the C1WrapDataCollection<S, T> class. |
| Name | Description |
|---|---|
| ConnectionState | Gets the state of the connection to the source. |
| CurrentPage | Gets the current page number. |
| FilterExpression | Gets the filter expression applied to the data. |
| GroupDescriptions | Gets the group descriptions applied to the data. |
| HasMoreItems | Gets a value indicating whether this collection can load more items. |
| IsPlain | Gets whether the group items will be inline with the data items or the items will be the first level of group items. |
| IsUpdating | Gets a value indicating whether the collection is being updated. |
| IsVirtualizing | Gets whether the collection is virtualizing its data. |
| PageSize | Gets or sets the maximum number of items per page. |
| SortDescriptions | Gets the sort descriptions applied to the data. |
| Source | Gets or sets the original source collection. |
| SourceIsDataCollectionList | Gets a value indicating whether the source collection is an C1DataCollectionList<T>. |
| SourceIsGeneric | Gets a value indicating whether the source collection is a list. |
| SourceIsList | Gets a value indicating whether the source collection is a list. |
| SourceIsObservableCollection | Gets a value indicating whether the source collection is an ObservableCollection<T>. |
| SourceNotifiesChanges | Gets a value indicating whether the source collection notifies changes. |
| TotalCount | Gets the total number of items in the collection. |
| Name | Description |
|---|---|
| CanFilter(FilterExpression?) | Returns whether the collection is able to filter the specified expression. |
| CanGroup(params GroupDescription[]) | Returns whether the collection is able to group the specified group descriptions. |
| CanInsert(int, S) | Determines whether a new item can be inserted in the collection at the specified |
| CanInsertRange(int, IEnumerable<S>) | Determines whether a new range of items can be inserted in the collection at the specified |
| CanMove(int, int) | Determines whether the item at |
| CanMoveRange(int, int, int) | Determines whether the item at |
| CanRefresh() | Determines whether the collection can be refreshed. |
| CanRemove(int) | Determines whether the item at the specified |
| CanRemoveRange(int, int) | Determines whether a range of items at the specified |
| CanReplace(int, S) | Determines whether the item at the specified |
| CanReplaceRange(int, IEnumerable<S>) | Determines whether the items starting at the specified |
| CanSort(params SortDescription[]) | Returns whether the collection is able to sort the specified sort descriptions. |
| ConnectAsync(CancellationToken) | Connects the collection to the source. |
| CreateInternalList(IReadOnlyList<S>) | Creates the internal list from the source. |
| CreateNewItem() | Creates a new item of the collection. |
| DisconnectAsync(CancellationToken) | Disconnects the collection from the source. |
| Dispose(bool) | Called to dispose resources. |
| FilterAsync(FilterExpression?, CancellationToken) | Filters the data using specified filter expression. |
| GetLoadedItems() | Returns the items that has be loaded so far. |
| GetLoadedItems(int?, int?) | Returns the items that has be loaded so far. |
| GroupAsync(params GroupDescription[]) | Groups the collection according to the specified group descriptions. |
| GroupAsync(GroupDescription[], CancellationToken) | Groups the collection according to the specified group descriptions. |
| InsertAsync(int, S, CancellationToken) | Inserts the specified |
| InsertRangeAsync(int, IEnumerable<S>, CancellationToken) | Inserts the specified |
| LoadAsync(int?, int?, CancellationToken) | Load the items between the specified indexes. |
| LoadMoreItemsAsync(int?, CancellationToken) | Loads more items asynchronously. |
| MoveAsync(int, int, CancellationToken) | Moves an item from the specified |
| MoveRangeAsync(int, int, int, CancellationToken) | Moves the items starting at the specified |
| MoveToPageAsync(int, CancellationToken) | Moves to the page |
| OnFilterChanged() | Called after the filter changed. |
| OnGroupChanged() | Called after the groups changed. |
| OnPageChanged() | Raises the PageChanged event. |
| OnSortChanged() | Called after the sort changed. |
| OnSourceCollectionChanged(object?, NotifyCollectionChangedEventArgs) | Called when the source collection changed. |
| RefreshAsync(CancellationToken) | Refreshes the collection data. |
| RemoveAsync(int, CancellationToken) | Removes the item at the specified |
| RemoveRangeAsync(int, int, CancellationToken) | Removes the items at the specified |
| ReplaceAsync(int, S, CancellationToken) | Replaces the item at the specified |
| ReplaceRangeAsync(int, IEnumerable<S>, CancellationToken) | Replaces the items starting at the specified |
| SortAsync(params SortDescription[]) | Sorts the collection according to the specified sort descriptions. |
| SortAsync(SortDescription[], CancellationToken) | Sorts the collection according to the specified sort descriptions. |
| SuppressSourceNotifications() | Disables the notifications while the returned IDisposable is not disposed. |
| Name | Description |
|---|---|
| FilterChanged | Raised after a filter operation was performed. |
| GroupChanged | Raised after a grouping operation was performed. |
| PageChanged | Occurs after the current page changed. |
| SortChanged | Raised after a sort operation was performed. |