C# Class System.Windows.Data.DataList

An object that abstracts a collection of items and various capabilities of different collection interfaces.
Inheritance: IIndexableCollection, IEditableCollection, IPageableCollection, INotifyPropertyChanged, INotifyCollectionChanged
Afficher le fichier Open project: nikhilk/silverlightfx Class Usage Examples

Private Properties

Свойство Type Description
AddItem void
DataList System
EnsureSnapShot void
IEditableCollection object
IEditableCollection void
IEnumerable IEnumerator
IPageableCollection IEnumerable
OnSourceCollectionChanged void
RaiseCollectionChanged void
RaiseCollectionReset void
RaisePropertyChanged void
RemoveItem void
RemoveItem void
UpdateVersion void
VerifyValidItem void
this objectIIndexableCollection.System

Méthodes publiques

Méthode Description
DataList ( IEnumerable data ) : System

Creates an instance of a DataList from the specified underlying data.

DataList ( IEnumerable data, Type itemType ) : System

Creates an instance of a DataList from the specified underlying data, and supplies the item type that goes into the list.

DataList ( IEnumerable data, bool enableCurrency ) : System

Creates an instance of a DataList from the specified underlying data.

MoveNext ( ) : void

Moves the current index forward.

MovePrevious ( ) : void

Moves the current index back.

MoveToItem ( object item ) : void

Sets the current item to the specified item.

UpdateFilter ( IPredicate predicate ) : void

Sets the predicate to use to filter the items contained in this DataList.

UpdateSort ( IComparer comparer ) : void

Sets the comparer to use to sort the items contained in this DataList.

this ( int index ) : object

Gets the item at the specified index within the underlying data.

Private Methods

Méthode Description
AddItem ( object item, bool notifyPropertyChange ) : void
DataList ( IEnumerable data, bool enableCurrency, Type itemType ) : System
EnsureSnapShot ( ) : void
IEditableCollection ( ) : object
IEditableCollection ( object item ) : void
IEnumerable ( ) : IEnumerator
IPageableCollection ( int pageIndex, int pageSize ) : IEnumerable
OnSourceCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
RaiseCollectionChanged ( NotifyCollectionChangedAction action, object item, int index ) : void
RaiseCollectionReset ( ) : void
RaisePropertyChanged ( string propertyName ) : void
RemoveItem ( object item, bool notifyPropertyChange ) : void
RemoveItem ( object item, int index, bool notifyPropertyChange ) : void
UpdateVersion ( ) : void
VerifyValidItem ( object item ) : void
this ( int index ) : objectIIndexableCollection.System

Method Details

DataList() public méthode

Creates an instance of a DataList from the specified underlying data.
public DataList ( IEnumerable data ) : System
data IEnumerable The underlying data to abstract.
Résultat System

DataList() public méthode

Creates an instance of a DataList from the specified underlying data, and supplies the item type that goes into the list.
public DataList ( IEnumerable data, Type itemType ) : System
data IEnumerable
itemType System.Type
Résultat System

DataList() public méthode

Creates an instance of a DataList from the specified underlying data.
public DataList ( IEnumerable data, bool enableCurrency ) : System
data IEnumerable The underlying data to abstract.
enableCurrency bool Whether to enable currency management.
Résultat System

MoveNext() public méthode

Moves the current index forward.
public MoveNext ( ) : void
Résultat void

MovePrevious() public méthode

Moves the current index back.
public MovePrevious ( ) : void
Résultat void

MoveToItem() public méthode

Sets the current item to the specified item.
public MoveToItem ( object item ) : void
item object The item that should become the current item.
Résultat void

UpdateFilter() public méthode

Sets the predicate to use to filter the items contained in this DataList.
public UpdateFilter ( IPredicate predicate ) : void
predicate IPredicate The predicate to use; null if no filter is to be applied.
Résultat void

UpdateSort() public méthode

Sets the comparer to use to sort the items contained in this DataList.
public UpdateSort ( IComparer comparer ) : void
comparer IComparer The comparer to use; null if no sort is to be applied.
Résultat void

this() public méthode

Gets the item at the specified index within the underlying data.
public this ( int index ) : object
index int The index to lookup.
Résultat object