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
Mostrar archivo Open project: nikhilk/silverlightfx Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

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

DataList() public method

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
return System

DataList() public method

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.
return System

MoveNext() public method

Moves the current index forward.
public MoveNext ( ) : void
return void

MovePrevious() public method

Moves the current index back.
public MovePrevious ( ) : void
return void

MoveToItem() public method

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

UpdateFilter() public method

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.
return void

UpdateSort() public method

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.
return void

this() public method

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