Important
This collection class will not work if bound to Windows Forms controls. Use
TrackingBindingListTEntity instead.
public class TrackingObservableCollection<T> : ObservableCollection<T>
Public Class TrackingObservableCollection(Of T)
Inherits ObservableCollection(Of T)generic<typename T>
public ref class TrackingObservableCollection : public ObservableCollection<T>type TrackingObservableCollection<'T> =
class
inherit ObservableCollection<'T>
end| Count | Gets the number of elements actually contained in the CollectionT. (Inherited from CollectionT) |
| Item | Gets or sets the element at the specified index. (Inherited from CollectionT) |
| Items | Gets a IListT wrapper around the CollectionT. (Inherited from CollectionT) |
| Add | Adds an object to the end of the CollectionT. (Inherited from CollectionT) |
| BlockReentrancy | Disallows reentrant attempts to change this collection. (Inherited from ObservableCollectionT) |
| CheckReentrancy | Checks for reentrant attempts to change this collection. (Inherited from ObservableCollectionT) |
| Clear | Removes all elements from the CollectionT. (Inherited from CollectionT) |
| ClearItems |
This is overridden to remove each individual entry rather than clearing them all out at once to
allow the data context to know about the removal of all the tracked items.
(Overrides ObservableCollectionTClearItems) |
| Contains | Determines whether an element is in the CollectionT. (Inherited from CollectionT) |
| CopyTo | Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from CollectionT) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetEnumerator | Returns an enumerator that iterates through the CollectionT. (Inherited from CollectionT) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT. (Inherited from CollectionT) |
| Insert | Inserts an element into the CollectionT at the specified index. (Inherited from CollectionT) |
| InsertItem | Inserts an item into the collection at the specified index. (Inherited from ObservableCollectionT) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Move | Moves the item at the specified index to a new location in the collection. (Inherited from ObservableCollectionT) |
| MoveItem | Moves the item at the specified index to a new location in the collection. (Inherited from ObservableCollectionT) |
| OnCollectionChanged |
This is overridden to add or remove items from the related data context
(Overrides ObservableCollectionTOnCollectionChanged(NotifyCollectionChangedEventArgs)) |
| OnPropertyChanged | Raises the PropertyChanged event with the provided arguments. (Inherited from ObservableCollectionT) |
| Remove | Removes the first occurrence of a specific object from the CollectionT. (Inherited from CollectionT) |
| RemoveAt | Removes the element at the specified index of the CollectionT. (Inherited from CollectionT) |
| RemoveItem | Removes the item at the specified index of the collection. (Inherited from ObservableCollectionT) |
| SetItem | Replaces the element at the specified index. (Inherited from ObservableCollectionT) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| CollectionChanged | Occurs when an item is added, removed, or moved, or the entire list is refreshed. (Inherited from ObservableCollectionT) |
| PropertyChanged | Occurs when a property value changes. (Inherited from ObservableCollectionT) |
| ToNullableT |
This is used to convert objects to null values if they are equal to null,
DBNull.Value, or the default value for the given type.
(Defined by DatabaseExtensions) |
| ToStringOrNull |
This is used to convert an object to a string and return either the string value if not empty, or
null if it is an empty string.
(Defined by DatabaseExtensions) |