ICollectionView Interface
TOC
Collapse the table of content
Expand the table of content

ICollectionView Interface

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping.

Namespace:  System.ComponentModel
Assembly:  System.Windows (in System.Windows.dll)

No code example is currently available or this language may not be supported.

The ICollectionView type exposes the following members.

  NameDescription
Public propertyCanFilterGets a value that indicates whether this view supports filtering by way of the Filter property.
Public propertyCanGroupGets a value that indicates whether this view supports grouping by way of the GroupDescriptions property.
Public propertyCanSortGets a value that indicates whether this view supports sorting by way of the SortDescriptions property.
Public propertyCultureGets or sets the cultural information for any operations of the view that may differ by culture, such as sorting.
Public propertyCurrentItemGets the current item in the view.
Public propertyCurrentPositionGets the ordinal position of the CurrentItem in the view.
Public propertyFilterGets or sets a callback that is used to determine whether an item is appropriate for inclusion in the view.
Public propertyGroupDescriptionsGets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view.
Public propertyGroupsGets the top-level groups.
Public propertyIsCurrentAfterLastGets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.
Public propertyIsCurrentBeforeFirstGets a value that indicates whether the CurrentItem of the view is beyond the start of the collection.
Public propertyIsEmptyGets a value that indicates whether the view is empty.
Public propertySortDescriptionsGets a collection of SortDescription instances that describe how the items in the collection are sorted in the view.
Public propertySourceCollectionGets the underlying collection.
Top

  NameDescription
Public methodContainsIndicates whether the specified item belongs to this collection view.
Public methodDeferRefreshEnters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Public methodGetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public methodMoveCurrentToSets the specified item in the view as the CurrentItem.
Public methodMoveCurrentToFirstSets the first item in the view as the CurrentItem.
Public methodMoveCurrentToLastSets the last item in the view as the CurrentItem.
Public methodMoveCurrentToNextSets the item after the CurrentItem in the view as the CurrentItem.
Public methodMoveCurrentToPositionSets the item at the specified index to be the CurrentItem in the view.
Public methodMoveCurrentToPreviousSets the item before the CurrentItem in the view to the CurrentItem.
Public methodRefreshRecreates the view.
Top

  NameDescription
Public eventCollectionChangedOccurs when the items list of the collection has changed, or the collection is reset. (Inherited from INotifyCollectionChanged.)
Public eventCurrentChangedOccurs after the current item has been changed.
Public eventCurrentChangingOccurs before the current item changes.
Top

  NameDescription
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft