-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Data.ICollectionView |
winrt interface |
Enables collections to support current record management, grouping, and incremental loading (data virtualization).
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.
The CollectionGroups property is of type IObservableVector, but these objects should implement ICollectionViewGroup.
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 IListand IEnumerable for Microsoft .NET usage.
IObservableVector<T>, IVector<T>, IIterable<T>, CollectionViewSource, Binding, XAML data binding sample, Data binding in depth