| ObservableCompositeCollectionFromListAndSingleItemTItem, T Method |
Create a collection initially containing one list plus one single item.
Namespace: TomsToolbox.ObservableCollectionsAssembly: TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax public static ObservableCompositeCollection<T> FromListAndSingleItem<TItem, T>(
IList<TItem> list,
T singleItem
)
where TItem : T
Public Shared Function FromListAndSingleItem(Of TItem As T, T) (
list As IList(Of TItem),
singleItem As T
) As ObservableCompositeCollection(Of T)
Parameters
- list IListTItem
- The list to add before the single item.
- singleItem T
- The last single item in the collection
Type Parameters
- TItem
- The type of elements in the list.
- T
- The type of the single item.
Return Value
ObservableCompositeCollectionTA new
ObservableCompositeCollectionT containing all items from the list plus one fixed list with the single item at the end.
See Also