Edit

Share via


ReadOnlyObservableGroup<TKey,TValue> Class

Definition

A read-only observable group. It associates a Key to a ReadOnlyObservableCollection<T>.

public sealed class ReadOnlyObservableGroup<TKey,TValue> : System.Collections.ObjectModel.ReadOnlyObservableCollection<TValue>, CommunityToolkit.Common.Collections.IReadOnlyObservableGroup, System.Collections.Generic.IEnumerable<TValue>, System.Linq.IGrouping<TKey,TValue>
type ReadOnlyObservableGroup<'Key, 'Value> = class
    inherit ReadOnlyObservableCollection<'Value>
    interface IGrouping<'Key, 'Value>
    interface seq<'Value>
    interface IEnumerable
    interface IReadOnlyObservableGroup
    interface INotifyPropertyChanged
Public NotInheritable Class ReadOnlyObservableGroup(Of TKey, TValue)
Inherits ReadOnlyObservableCollection(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
ReadOnlyObservableGroup<TKey,TValue>
Implements

Constructors

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

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

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

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

ReadOnlyObservableGroup<TKey,TValue>(TKey, ObservableCollection<TValue>)

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

Properties

Key

Gets the key for the current collection, as an Object. It is immutable.

Explicit Interface Implementations

IReadOnlyObservableGroup.Key

Applies to