Enables collections to support current record management, grouping, and incremental loading (data virtualization).
public interface ICollectionView : IObservableVector<object>, IList<object>, IEnumerable<object>
The ICollectionView interface has these types of members:
The ICollectionView interface has these events.
|CurrentChanged||When implementing this interface, fire this event after the current item has been changed.|
|CurrentChanging||When implementing this interface, fire this event before changing the current item. The event handler can cancel this event.|
The ICollectionView interface has these methods. It also inherits methods from the Object class.
|LoadMoreItemsAsync||Initializes incremental loading from the view.|
|MoveCurrentTo||Sets the specified item to be the CurrentItem in the view.|
|MoveCurrentToFirst||Sets the first item in the view as the CurrentItem.|
|MoveCurrentToLast||Sets the last item in the view as the CurrentItem.|
|MoveCurrentToNext||Sets the item after the CurrentItem in the view as the CurrentItem.|
|MoveCurrentToPosition||Sets the item at the specified index to be the CurrentItem in the view.|
|MoveCurrentToPrevious||Sets the item before the CurrentItem in the view as the CurrentItem.|
The ICollectionView interface has these properties.
|Read-only||Returns any collection groups that are associated with the view.|
|Read-only||Gets the current item in the view.|
|Read-only||Gets the ordinal position of the CurrentItem within the view.|
|Read-only||Gets a sentinel value that supports incremental loading implementations. See also LoadMoreItemsAsync.|
|Read-only||Gets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.|
|Read-only||Gets a value that indicates whether the CurrentItem of the view is beyond the beginning of the collection.|
ICollectionView is an interface used to represent a collection. It serves to maintain currency for properties like item selection.
To implement custom behavior for selection currency in your data source, your data source should implement ICollectionViewFactory instead of implementing ICollectionView directly. You can set the CollectionViewSource.Source property to an ICollectionViewFactory, but if you set it to an ICollectionView, it will throw an exception.
ICollectionView inherits IObservableVector, IVector and IIterable . Types that implement ICollectionView also implement the interface members of IObservableVector, and either IVector and IIterable for C++ usage or IList and IEnumerable for Microsoft .NET usage.
Minimum supported client
Minimum supported server
|Windows Server 2012|
Minimum supported phone
|Windows Phone 8.1 [Windows Runtime apps only]|
- XAML data binding sample
- Data binding overview