CollectionView Members

Represents a view of a data collection. Views allow for the functionalities of grouping, sorting, filtering, and the concept of a current record pointer.

The following tables list the members exposed by the CollectionView type.

  Name Description
Public method CollectionView Creates a view over the given collection.
Top

(see also Protected Properties )
  Name Description
Public property CanFilter Gets a value that indicates whether this view supports filtering.
Public property CanGroup Gets a value that indicates whether this view supports grouping.
Public property CanSort Gets a value that indicates whether this view supports sorting.
Public property Comparer Returns an object that you can use to compare items in this view.
Public property Count Gets the number of records in this view.
Public property Culture Gets or sets the culture to use during sorting.
Public property CurrentItem Gets the current item in the view.
Public property CurrentPosition Gets the ordinal position of the CurrentItem within the (optionally sorted and filtered) view.
Public property Dispatcher  Gets the Dispatcher this DispatcherObject is associated with. (inherited from DispatcherObject)
Public property Filter Gets or sets a callback used to determine if an item is suitable for inclusion in the view.
Public property GroupDescriptions Gets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view.
Public property Groups Gets the top-level groups that are constructed based in the GroupDescriptions.
Public property IsCurrentAfterLast Gets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.
Public property IsCurrentBeforeFirst Gets a value that indicates whether the CurrentItem of the view is beyond the beginning of the collection.
Public property IsEmpty Returns a value that indicates whether the resulting (filtered) view is empty.
Public property NeedsRefresh Gets a value that indicates whether this view needs to be refreshed.
Public property SortDescriptions Gets a collection of SortDescription objects that describe how the items in the collection are sorted in the view.
Public property SourceCollection Returns the underlying un-filtered collection.
Top

  Name Description
Protected property IsCurrentInSync Gets a value that indicates whether the CurrentItem is at the CurrentPosition.
Protected property IsDynamic Gets a value that indicates whether the underlying collection provides change notifications.
Protected property IsRefreshDeferred Returns a value that indicates whether there is an outstanding DeferRefresh in use.
Protected property UpdatedOutsideDispatcher Returns true if it has been necessary to update the change log because a CollectionChanged notification has been received on a different thread without first entering the user interface (UI) thread dispatcher.
Top

(see also Protected Methods )
  Name Description
Public method CheckAccess  Determines whether the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Public method Contains Returns a value that indicates whether a given item belongs to this collection view.
Public method DeferRefresh Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetItemAt Retrieves the item at the specified zero-based index in this view.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IndexOf Returns the index at which the specified item is located.
Public method MoveCurrentTo Set the specified item to be the CurrentItem in the view.
Public method MoveCurrentToFirst Sets the first item in the view as the CurrentItem.
Public method MoveCurrentToLast Sets the last item in the view as the CurrentItem.
Public method MoveCurrentToNext Sets the item after the CurrentItem in the view as the CurrentItem.
Public method MoveCurrentToPosition Sets the item at the specified index to be the CurrentItem in the view.
Public method MoveCurrentToPrevious Sets the item before the CurrentItem in the view as the CurrentItem.
Public method PassesFilter Returns a value that indicates whether the specified item in the underlying collection belongs to this view.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Refresh Recreates the view.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method VerifyAccess  Enforces that the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Top

  Name Description
Protected method ClearChangeLog Clears any pending changes from the change log.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method GetEnumerator Returns an object that you can use to enumerate the items in this view.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OKToChangeCurrent Returns a value that indicates whether the view can make changes to the currency.
Protected method OnBeginChangeLogging Called by the base class to notify the derived class that a CollectionChanged has been posted to the message queue.
Protected method OnCollectionChanged Overloaded. Notifies listeners that the view has changed.
Protected method OnCurrentChanged Raises the CurrentChanged event.
Protected method OnCurrentChanging Overloaded. Raises the CurrentChanging event.
Protected method OnPropertyChanged Raises the PropertyChanged event using the provided arguments.
Protected method ProcessCollectionChanged Must be implemented by the derived classes to process a single change on the UI thread.
Protected method RefreshOrDefer Refreshes the view or marks that the view needs to be refreshed when the defer cycle completes.
Protected method RefreshOverride Recreates the view.
Protected method SetCurrent Sets the specified item and index as the values of the CurrentItem and the CurrentPosition respectively.
Top

(see also Protected Events )
  Name Description
Public event CurrentChanged Occurs after the CurrentItem has been changed.
Public event CurrentChanging Occurs when the currency is changing.
Top

  Name Description
Protected event CollectionChanged Occurs when the view has changed.
Protected event PropertyChanged Occurs when a property value has changed.
Top

  Name Description
Explicit interface implementation Method System.Collections.IEnumerable.GetEnumerator An IEnumerator object that you can use to enumerate the items in this view.
Explicit interface implementation Event System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged Occurs when the view has changed.
Explicit interface implementation Event System.ComponentModel.INotifyPropertyChanged.PropertyChanged Occurs when a property value changes.
Top
Show: