Click or drag to resize
ObservableCollectionT Class
Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionT
    System.Collections.ObjectModelObservableCollectionT
      More...

Namespace: System.Collections.ObjectModel
Assembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax
C#
public class ObservableCollection<T> : Collection<T>, 
	INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

T
The type of elements in the collection.

The ObservableCollectionT type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAdd (Inherited from CollectionT.)
Public methodClear (Inherited from CollectionT.)
Protected methodClearItems
Removes all the elements from the ObservableCollection.
(Overrides CollectionTClearItems.)
Public methodContains (Inherited from CollectionT.)
Public methodCopyTo (Inherited from CollectionT.)
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetEnumerator (Inherited from CollectionT.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from CollectionT.)
Public methodInsert (Inherited from CollectionT.)
Protected methodInsertItem
Inserts an element at the given index into the ObservableCollection.
(Overrides CollectionTInsertItem(Int32, T).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnCollectionChanged
Raises the event to call when the collection has changed.
Protected methodRaisePropertyChanged
Raises the event to call when a property is changed.
Public methodRemove (Inherited from CollectionT.)
Public methodRemoveAt (Inherited from CollectionT.)
Protected methodRemoveItem
Removes the element at the given index from the ObservableCollection.
(Overrides CollectionTRemoveItem(Int32).)
Protected methodSetItem
Replaces the element at the given position with the element given as a parameter.
(Overrides CollectionTSetItem(Int32, T).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
Events
  NameDescription
Public eventCollectionChanged
Occurs when an item is added, removed, changed, moved, or the entire list is refreshed.
Public eventPropertyChanged
Occurs when a property value changes.
Top
See Also
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionT
    System.Collections.ObjectModelObservableCollectionT
      Windows.UI.Xaml.Media.AnimationObjectKeyFrameCollection
      Windows.UI.Xaml.Media.AnimationTimelineCollection
      Windows.UI.Xaml.Media.AnimationTransitionCollection
      Windows.UI.Xaml.MediaDoubleCollection
      Windows.UI.Xaml.MediaPathFigureCollection
      Windows.UI.Xaml.MediaPathSegmentCollection
      Windows.UI.Xaml.MediaPointCollection