Search Results for

    Show / Hide Table of Contents

    Class ObservablePropertyChangedCollection<TItem>

    Raises CollectionChanged event when the property of an item raised PropertyChanged. The NotifyCollectionChangedAction for this particular notification is Reset with a reference to the notifying item and the item's index. .

    Inheritance
    Object
    Collection<TItem>
    ObservableCollection<TItem>
    ObservablePropertyChangedCollection<TItem>
    Implements
    IList<TItem>
    ICollection<TItem>
    IReadOnlyList<TItem>
    IReadOnlyCollection<TItem>
    IEnumerable<TItem>
    IList
    ICollection
    IEnumerable
    INotifyCollectionChanged
    INotifyPropertyChanged
    Inherited Members
    ObservableCollection<TItem>.BlockReentrancy()
    ObservableCollection<TItem>.CheckReentrancy()
    ObservableCollection<TItem>.Move(Int32, Int32)
    ObservableCollection<TItem>.MoveItem(Int32, Int32)
    ObservableCollection<TItem>.OnCollectionChanged(NotifyCollectionChangedEventArgs)
    ObservableCollection<TItem>.OnPropertyChanged(PropertyChangedEventArgs)
    ObservableCollection<TItem>.CollectionChanged
    ObservableCollection<TItem>.INotifyPropertyChanged.PropertyChanged
    System.Collections.ObjectModel.Collection<TItem>.System.Collections.IList.get_Item(System.Int32)
    System.Collections.ObjectModel.Collection<TItem>.System.Collections.IList.set_Item(System.Int32, System.Object)
    Collection<TItem>.Add(TItem)
    Collection<TItem>.Clear()
    Collection<TItem>.Contains(TItem)
    Collection<TItem>.CopyTo(TItem[], Int32)
    Collection<TItem>.GetEnumerator()
    Collection<TItem>.IndexOf(TItem)
    Collection<TItem>.Insert(Int32, TItem)
    Collection<TItem>.Remove(TItem)
    Collection<TItem>.RemoveAt(Int32)
    Collection<TItem>.ICollection.CopyTo(Array, Int32)
    Collection<TItem>.IEnumerable.GetEnumerator()
    Collection<TItem>.IList.Add(Object)
    Collection<TItem>.IList.Contains(Object)
    Collection<TItem>.IList.IndexOf(Object)
    Collection<TItem>.IList.Insert(Int32, Object)
    Collection<TItem>.IList.Remove(Object)
    Collection<TItem>.Count
    Collection<TItem>.Item[Int32]
    Collection<TItem>.Items
    Collection<TItem>.ICollection<TItem>.IsReadOnly
    Collection<TItem>.ICollection.IsSynchronized
    Collection<TItem>.ICollection.SyncRoot
    Collection<TItem>.IList.IsFixedSize
    Collection<TItem>.IList.IsReadOnly
    Collection<TItem>.IList.Item[Int32]
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: BionicCode.Utilities.Net
    Assembly: BionicCode.Utilities.Net.Wpf.dll
    Syntax
    [Serializable]
    public class ObservablePropertyChangedCollection<TItem> : ObservableCollection<TItem>, IList<TItem>, ICollection<TItem>, IReadOnlyList<TItem>, IReadOnlyCollection<TItem>, IEnumerable<TItem>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
    Type Parameters
    Name Description
    TItem
    Remarks

    The item must implement INotifyPropertyChanged otherwise the behavior is like a common ObservableCollection<T>. The ObservablePropertyChangedCollection<TItem> implements the weak event pattern in order to handle the PropertyChanged event.

    Methods

    | Improve this Doc View Source

    ClearItems()

    Declaration
    protected override void ClearItems()
    Overrides
    System.Collections.ObjectModel.ObservableCollection<TItem>.ClearItems()
    | Improve this Doc View Source

    InsertItem(Int32, TItem)

    Declaration
    protected override void InsertItem(int index, TItem item)
    Parameters
    Type Name Description
    Int32 index
    TItem item
    Overrides
    System.Collections.ObjectModel.ObservableCollection<TItem>.InsertItem(System.Int32, TItem)
    | Improve this Doc View Source

    RemoveItem(Int32)

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    Type Name Description
    Int32 index
    Overrides
    System.Collections.ObjectModel.ObservableCollection<TItem>.RemoveItem(System.Int32)
    | Improve this Doc View Source

    SetItem(Int32, TItem)

    Declaration
    protected override void SetItem(int index, TItem item)
    Parameters
    Type Name Description
    Int32 index
    TItem item
    Overrides
    System.Collections.ObjectModel.ObservableCollection<TItem>.SetItem(System.Int32, TItem)

    Events

    | Improve this Doc View Source

    PropertyChanged

    Declaration
    protected override event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler
    Overrides
    System.Collections.ObjectModel.ObservableCollection<TItem>.PropertyChanged

    Implements

    IList<T>
    ICollection<T>
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IList
    ICollection
    IEnumerable
    INotifyCollectionChanged
    INotifyPropertyChanged

    Extension Methods

    HelperExtensionsCommon.IsEmpty<TItem>(IEnumerable<TItem>)
    HelperExtensionsCommon.TakeRange<TItem>(IEnumerable<TItem>, Int32, Int32)
    HelperExtensionsCommon.AddRange<TItem>(ICollection<TItem>, IEnumerable<TItem>)
    HelperExtensionsCommon.LastOrDefaultInSorted<TItem>(IEnumerable<TItem>, Func<TItem, Boolean>)
    HelperExtensionsCommon.LastInSorted<TItem>(IEnumerable<TItem>, Func<TItem, Boolean>)
    HelperExtensionsCommon.ToDataTable<TData>(IEnumerable<TData>)
    HelperExtensionsCommon.ToDictionary(Object)
    HelperExtensionsCommon.ToFlatDictionary(Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX