Skip to main content

ListView<T>

Family: Navigation & Workflow
Namespace: Tessera.Controls

Use ListView<T> when this interaction is the best match for your screen workflow.

When to use

  • Straightforward item browsing with low complexity.
  • You need selection-driven detail panels.

Minimal usage

csharp.cs
using Tessera.Controls;
using Tessera.Layout;

var list = new ListView<string>();
list.SetItems("Orders", "Incidents", "Telemetry", "Exports");

var status = new StatusBar { LeftText = "Select a section" };
list.SelectionChanged += (_, e) => status.LeftText = $"Selected: {e.SelectedItem}";

return Screen.Build(window =>
{
    window.Footer(1, status);
    window.Body(body => body.Fill(list));
});

Common pitfalls

  • Use VirtualizedListView<T> for very large collections.
  • Do not overload each row with excessive formatting noise.

Public properties

PropertyType
BorderBorderStyle
BorderStyleTextTesseraStyle
DefaultRowStyleTesseraStyle
FocusedBorderStyleTextTesseraStyle
FocusedTitleStyleTesseraStyle
FocusMarkerstring
HoveredRowStyleTesseraStyle
IsDisabledbool
IsFocusedbool
IsReadOnlybool
PaddingThickness
RowMarkersListViewMarkerSet
SelectedRowStyleTesseraStyle
ShowFocusMarkerbool
Titlestring
TitleStyleTesseraStyle

Public events

EventType
SelectionChangedEventHandler<ListSelectionChangedEventArgs<T>>?