Docs / UI

Glossary: IItemsTemplate

The members of IItemsTemplate, in alphabetical order.

Color legend plain property dependency property method

A list’s ItemsTemplate. A virtualized ListBox (VirtualizationMode Fixed) reuses the rows that scroll out of view: a template that can show another source object in an element it made overrides UpdateItemElement, otherwise a reused row gets a new element, as without virtualization.

An interface. The styles page shows it in context.

Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.

Methods

GenerateItemElement() 🠆

GenerateItemElement(object data) · Returns a new element that shows the source object.

Parameter Type Description
data object The source object the element shows.

UpdateItemElement() 🠆

UpdateItemElement(BaseElement element, object data) · Returns the element that shows data in a row whose element, made by this template, showed another source object: element updated, or a new one, which replaces it (the list disposes the replaced one). By default it returns GenerateItemElement(data).

Parameter Type Description
element BaseElement The element this template made for the row, showing another source object.
data object The source object the row shows now.