Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 2.57 KB

icollectionview.md

File metadata and controls

31 lines (19 loc) · 2.57 KB
-api-id -api-type
T:Windows.UI.Xaml.Data.ICollectionView
winrt interface

Windows.UI.Xaml.Data.ICollectionView

-description

Enables collections to support current record management, grouping, and incremental loading (data virtualization).

-remarks

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.

Interface inheritance

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.

-examples

-see-also

IObservableVector<T>, IVector<T>, IIterable<T>, CollectionViewSource, Binding, XAML data binding sample, Data binding in depth