SelectionList<T> is a multi-select list widget (checkbox-style selection in-layout).
new SelectionList<string>()
.AddItem("First")
.AddItem("Second", isChecked: true);
SelectionList<T> exposes:
Items: the list of itemsChecked: a parallel BindableList<bool> holding the checked state for each item (same index as Items)This makes it easy to bind selection state to your own models:
var items = new[] { "A", "B", "C" };
var checkedState = new State<bool[]>([true, false, false]);
The control keeps Checked aligned with Items (same count). Missing entries default to false.
Keyboard:
Up / Down, PageUp / PageDown, Home / End: move the selection cursorSpace / Enter: toggle the selected itemCtrl+A: check allCtrl+I: invert allMouse:
Like other list controls, items are rendered using DataTemplate<T>.
If you don’t set ItemTemplate, the template is resolved from the environment (DataTemplates).
HorizontalAlignment = Align.Start, VerticalAlignment = Align.StartSelectionListStyle controls glyphs, spacing, and selection visuals.