Edit

Share via


ObservableGroup<TKey,TValue> Class

Definition

An observable group. It associates a Key to an ObservableCollection<T>.

public class ObservableGroup<TKey,TValue> : System.Collections.ObjectModel.ObservableCollection<TValue>, CommunityToolkit.Common.Collections.IReadOnlyObservableGroup, System.Collections.Generic.IEnumerable<TValue>, System.Linq.IGrouping<TKey,TValue>
type ObservableGroup<'Key, 'Value> = class
    inherit ObservableCollection<'Value>
    interface IGrouping<'Key, 'Value>
    interface seq<'Value>
    interface IEnumerable
    interface IReadOnlyObservableGroup
    interface INotifyPropertyChanged
Public Class ObservableGroup(Of TKey, TValue)
Inherits ObservableCollection(Of TValue)
Implements IEnumerable(Of TValue), IGrouping(Of TKey, TValue), IReadOnlyObservableGroup

Type Parameters

TKey

The type of the group key.

TValue

The type of the items in the collection.

Inheritance
ObservableGroup<TKey,TValue>
Implements

Constructors

ObservableGroup<TKey,TValue>(IGrouping<TKey,TValue>)

Initializes a new instance of the ObservableGroup<TKey,TValue> class.

ObservableGroup<TKey,TValue>(TKey)

Initializes a new instance of the ObservableGroup<TKey,TValue> class.

ObservableGroup<TKey,TValue>(TKey, IEnumerable<TValue>)

Initializes a new instance of the ObservableGroup<TKey,TValue> class.

Properties

Key

Gets or sets the key of the group.

Explicit Interface Implementations

IReadOnlyObservableGroup.Key

Applies to