ItemTemplateSelector<TItem>

Chooses a strongly typed item template from an item's runtime type.
public sealed class ItemTemplateSelector<TItem> where TItem : class
Type parameterSummary
(class) TItemThe common item type of the collection.

Methods

Add

Registers the template used for one concrete item type.

public ItemTemplateSelector<TItem> Add<TDerived>(
  Func<ItemView<TDerived>> template) where TDerived : class, TItem
ParameterSummary
Func<ItemView<TDerived>> templateBuilds the element tree for a reusable cell.
Type parameterSummary
TItem TDerivedThe runtime item type this template displays.

Returns