[]
        
(Showing Draft Content)

C1.WPF.DataCollection.C1CollectionViewDataCollection

C1CollectionViewDataCollection Class

Collection that wraps a ICollectionView and exposes it as a IDataCollection<T>

Inheritance
C1CollectionViewDataCollection
Namespace: C1.WPF.DataCollection
Assembly: C1.WPF.DataCollection.dll
Syntax
public class C1CollectionViewDataCollection : C1DataCollectionBase<object?>, IDataCollection<object?>, IEnumerable<object?>, IEnumerable, IReadOnlyList<object?>, IReadOnlyCollection<object?>, INotifyCollectionChanged, ISupportIndexing<object?>, INotifyPropertyChanged, IDisposable, ISupportSource, ISupportSorting, ISupportFiltering, ISupportGrouping, ISupportEditing<object?>

Constructors

Name Description
C1CollectionViewDataCollection(ICollectionView, bool)

Initializes a new instance of the C1CollectionViewDataCollection class.

Properties

Name Description
CollectionView

Gets the underlying collection view.

EditableCollectionView

Gets the editable collection view, or null if it is not editable.

FilterExpression

Gets the filter expression.

GroupDescriptions

Gets the group descriptions.

IsPlain

Gets whether the group items will be inline with the data items or the items will be the first level of group items.

ItemType

Gets the type of the items.

SortDescriptions

Gets the sort descriptions applied to the data.

Source

Gets the data source of this collection.

Methods

Name Description
CanFilter(FilterExpression?)

Determines whether this collection can filter the specified filter expression.

CanGroup(params GroupDescription[])

Returns whether the collection is able to group the specified group descriptions.

CanInsert(int, object?)

Determines whether a new item can be inserted in the collection at the specified index.

CanMove(int, int)

Determines whether the item at fromIndex can be moved to toIndex.

CanRemove(int)

Determines whether the item at the specified index can be removed from the collection.

CanReplace(int, object?)

Determines whether the item at the specified index can be replaced in the collection.

CanSort(params SortDescription[])

Returns whether the collection is able to sort the specified sortDescriptions.

Dispose(bool)

Called to dispose resources.

FilterAsync(FilterExpression?, CancellationToken)

Filters the collection according to the specified filterExpression.

GetItemType()

Gets the type of the items.

GetPropertyDescriptorValue<T>(PropertyDescriptor, object)

Gets the property descriptor value.

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, object?, CancellationToken)
MoveAsync(int, int, CancellationToken)
RemoveAsync(int, CancellationToken)
ReplaceAsync(int, object?, CancellationToken)
SetPropertyDescriptorValue<T>(PropertyDescriptor, object, T)

Sets the property descriptor value.

SortAsync(params SortDescription[])

Sorts the collection according to the specified sortDescriptions.

SortAsync(SortDescription[], CancellationToken)

Sorts the collection according to the specified sortDescriptions.

Events

Name Description
FilterChanged

Occurs when the filter changed.

GroupChanged

Occurs when the groups changed.

SortChanged

Raised after a sort operation was performed.