Esporta (0) Stampa
Espandi tutto
Questo argomento non è stato ancora valutato - Valuta questo argomento

ICollectionView Interface

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)
public interface ICollectionView : IEnumerable, 
	INotifyCollectionChanged

The ICollectionView type exposes the following members.

  NameDescription
Public propertySupported by Silverlight for Windows PhoneCanFilterGets a value that indicates whether this view supports filtering by way of the Filter property.
Public propertySupported by Silverlight for Windows PhoneCanGroupGets a value that indicates whether this view supports grouping by way of the GroupDescriptions property.
Public propertySupported by Silverlight for Windows PhoneCanSortGets a value that indicates whether this view supports sorting by way of the SortDescriptions property.
Public propertySupported by Silverlight for Windows PhoneCultureGets or sets the cultural information for any operations of the view that may differ by culture, such as sorting.
Public propertySupported by Silverlight for Windows PhoneCurrentItemGets the current item in the view.
Public propertySupported by Silverlight for Windows PhoneCurrentPositionGets the ordinal position of the CurrentItem in the view.
Public propertySupported by Silverlight for Windows PhoneFilterGets or sets a callback that is used to determine whether an item is appropriate for inclusion in the view.
Public propertySupported by Silverlight for Windows PhoneGroupDescriptionsGets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view.
Public propertySupported by Silverlight for Windows PhoneGroupsGets the top-level groups.
Public propertySupported by Silverlight for Windows PhoneIsCurrentAfterLastGets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.
Public propertySupported by Silverlight for Windows PhoneIsCurrentBeforeFirstGets a value that indicates whether the CurrentItem of the view is beyond the start of the collection.
Public propertySupported by Silverlight for Windows PhoneIsEmptyGets a value that indicates whether the view is empty.
Public propertySupported by Silverlight for Windows PhoneSortDescriptionsGets a collection of SortDescription instances that describe how the items in the collection are sorted in the view.
Public propertySupported by Silverlight for Windows PhoneSourceCollectionGets the underlying collection.
Top
  NameDescription
Public methodSupported by Silverlight for Windows PhoneContainsIndicates whether the specified item belongs to this collection view.
Public methodSupported by Silverlight for Windows PhoneDeferRefreshEnters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Public methodSupported by Silverlight for Windows PhoneGetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public methodSupported by Silverlight for Windows PhoneMoveCurrentToSets the specified item in the view as the CurrentItem.
Public methodSupported by Silverlight for Windows PhoneMoveCurrentToFirstSets the first item in the view as the CurrentItem.
Public methodSupported by Silverlight for Windows PhoneMoveCurrentToLastSets the last item in the view as the CurrentItem.
Public methodSupported by Silverlight for Windows PhoneMoveCurrentToNextSets the item after the CurrentItem in the view as the CurrentItem.
Public methodSupported by Silverlight for Windows PhoneMoveCurrentToPositionSets the item at the specified index to be the CurrentItem in the view.
Public methodSupported by Silverlight for Windows PhoneMoveCurrentToPreviousSets the item before the CurrentItem in the view to the CurrentItem.
Public methodSupported by Silverlight for Windows PhoneRefreshRecreates the view.
Top
  NameDescription
Public eventSupported by Silverlight for Windows PhoneCollectionChangedOccurs when the items list of the collection has changed, or the collection is reset. (Inherited from INotifyCollectionChanged.)
Public eventSupported by Silverlight for Windows PhoneCurrentChangedOccurs after the current item has been changed.
Public eventSupported by Silverlight for Windows PhoneCurrentChangingOccurs before the current item changes.
Top
  NameDescription
Public Extension MethodSupported by Silverlight for Windows PhoneAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows PhoneCast<TResult>Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by Silverlight for Windows PhoneOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

The DataGrid control uses this interface to access the indicated functionality in the data source assigned to its ItemsSource property. If the ItemsSource implements IList, but does not implement ICollectionView, the DataGrid wraps the ItemsSource in an internal ICollectionView implementation.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Il documento è risultato utile?
(1500 caratteri rimanenti)
Grazie per i commenti inviati.

Aggiunte alla community

AGGIUNGI
Mostra:
© 2014 Microsoft. Tutti i diritti riservati.