Class SimpleObservableCollection<TItem>

A simple base class for observable collections of items.

System.Object
  System.Collections.ObjectModel.Collection<TItem>
    System.Collections.ObjectModel.ObservableCollection<TItem>
      Stonefield.Collections.SimpleObservableCollection<TItem>
public class SimpleObservableCollection<TItem> : ObservableCollection<TItem>

Remarks

Like BaseKeyedCollection, the major use case for this rather than using ObservableCollection directly is when the item class has dependencies that we want the collection rather than the developer to set up for us.

Class Members

MemberDescription

Constructor

CollectionChanged

PropertyChanged

Add

public sealed void Add(TItem item);

Clear

public sealed void Clear();

Contains

public sealed bool Contains(TItem item);

CopyTo

public sealed void CopyTo(TItem[] array,
    int index);

GetEnumerator

public sealed IEnumerator<TItem> GetEnumerator();

IndexOf

public sealed int IndexOf(TItem item);

Insert

public sealed void Insert(int index,
    TItem item);

Move

public void Move(int oldIndex,
    int newIndex);

Remove

public sealed bool Remove(TItem item);

RemoveAt

public sealed void RemoveAt(int index);

Count

Item

Tag

Can hold anything necessary.

Requirements

Namespace: Stonefield.Collections
Assembly: collections.dll