콘텐츠로 이동

ListBoxMarkupExtensions class

이 콘텐츠는 아직 번역되지 않았습니다.

Generated fluent setters and event subscriptions for ListBox.

Guide: C# Markup guide

public static class ListBoxMarkupExtensions
name description
static HorizontalScroll<T>(…) Sets the horizontal scroll mode, Auto by default, so items wider than the viewport scroll horizontally.
static ItemHeight<T>(…) Sets the height of each list item.
static ItemPadding<T>(…) Sets the padding around each item’s text.
static OnSelectedIndicesChanged<T>(…) Subscribes handler to SelectedIndicesChanged. Occurs when the set of selected items changes (multi-select).
static OnSelectionChanged<T>(…) Subscribes handler to SelectionChanged. Occurs when the selected item changes.
static SelectedIndex<T>(…) Sets the selected item index.
static SelectedItem<T>(…) Sets the currently selected item object.
static SelectionMode<T>(…) Sets the selection mode; multi-selection needs an items source that supports it (e.g. created from a typed list), otherwise the mode stays Single.
static ZebraStriping<T>(…) Sets whether alternating items use a second background color (zebra striping).