Click or drag to resize

ObservableCompositeCollectionFromSingleItemAndListT, TItem Method

Create a collection initially containing one single item plus one list.

Namespace: TomsToolbox.ObservableCollections
Assembly: TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static ObservableCompositeCollection<T> FromSingleItemAndList<T, TItem>(
	T singleItem,
	IList<TItem> list
)
where TItem : T

Parameters

singleItem  T
The first single item in the collection
list  IListTItem
The list to add after the single item.

Type Parameters

T
The type of the single item.
TItem
The type of elements in the list.

Return Value

ObservableCompositeCollectionT
A new ObservableCompositeCollectionT containing one fixed list with the single item plus all items from the list.
See Also