Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

ListElement

This element will display a list of items.

Properties

Name
Type
Description

Data

object[]

An array of objects coming from a source

RowsVisible

int

Number of items visible at the same time

RowIncrementPerChange

int

Number of rows shifted per change. If same as RowsVisible, then whole page is chjanged.

ChangeInterval

TimeSpan

Interval of when a change is done

RowBackground

Brush

Background behind a row, drawn behind the ItemTemplate. Not set by default, which leaves the rows transparent.

AlternateRowBackground

Brush

Background behind every second row, for a striped list. Falls back to RowBackground while it is not set.

DataChangedMode

Enum

Whenever data is set, this value defines what happens:

KeepPosition will keep the current scroll position StartFromBeginning will revert to the start

DataContentChangedMode

Enum

Whenever data is set and the content is different than before, this value defines what happens:

KeepPosition will keep the current scroll position StartFromBeginning will revert to the start

DataChangedDelayMode

Enum

Defines when a data change occurs when new data is set: Now changes the data source instantly AfterCurrentPage changes after the current page AfterLastPage waits until the end before changing

Row backgrounds

RowBackground and AlternateRowBackground paint the area a row is drawn in, behind the ItemTemplate. They alternate by the position on screen, not by the row, so the stripes stay where they are while the rows scroll through them.

As long as neither is set, the rows keep no background at all, which is what an overlay on top of a video usually wants. Setting only RowBackground gives every row the same background.

<controls:ListElement Data="{Binding Sources.Results.Value}"
                      RowsVisible="5"
                      RowBackground="#CC000000"
                      AlternateRowBackground="#CC202020" />

The same pair of properties exists on ItemsElement as ItemBackground and AlternateItemBackground.

Last updated