콘텐츠로 이동

NavigationList class

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

Single-selection vertical list for navigation panes. Rows are typed via KindSelector (NavigationItemKind); headers and separators are skipped by selection, hover, and keyboard.

Guide: C# Markup reference: Listbox

public class NavigationList : ScrollableItemsBase, IIndexedSelector
name description
NavigationList() The default constructor.
ItemHeight { get; set; } Gets or sets the minimum height of selectable Item rows; headers and separators self-size, and NaN (the default) resolves from the theme.
ItemPadding { get; set; } Gets or sets the padding around each row’s content; the default comes from the theme.
ItemsSource { get; set; } Gets or sets the items source.
ItemTemplate { get; set; } Gets or sets the item template.
KindSelector { get; set; } Gets or sets the per-item kind selector; null makes every row a selectable Item.
SelectedIndex { get; set; } Gets or sets the selected row index, or -1 for none; non-item rows are rejected.
SelectedItem { get; set; } Gets the selected item object, or null.
event ItemInvoked Occurs when a selectable row is activated by click or Enter, before a click selects it; a handler that sets Handled keeps the selection as it is.
event SelectionChanged Occurs when the selection changes.
RefreshItems() Fully clears the container pool and rebuilds all rows (e.g. after a template-affecting change).
ScrollIntoView(…)
TryGetContainer(…) Gets the container currently showing the row at index. False when that row is not realized, which is the normal state of one scrolled out of view.
TryGetItemIndexAt(…) (2 methods)
static readonly ItemHeightProperty Gets or sets the minimum height of selectable Item rows. Headers and separators self-size and ignore this. NaN (default) resolves from the theme.
static readonly ItemPaddingProperty Gets or sets the padding around each row’s content (default from theme).
static readonly SelectedIndexProperty
static readonly SelectedItemProperty