콘텐츠로 이동

NavigationView class

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

A navigation shell: a recessed pane (toggle + NavigationList) beside a content region. Fills its slot (no outer border). Supports Expanded / Compact (icon rail) / Minimal (overlay) via PaneDisplayMode; Auto resolves from the available width. Minimal is width-driven (the pane collapses to an overlay below a threshold); above it the toggle collapses/expands the inline pane between Expanded and Compact. In Minimal the top-bar hamburger opens the pane as an overlay flyout (item pick or outside click dismisses it).

Guide: C# Markup reference: Listbox

public sealed class NavigationView : Control
name description
NavigationView() The default constructor.
CompactPaneWidth { get; set; } Gets or sets the pane width in the compact icon rail.
ContentSelector { get; set; } Gets or sets the selector mapping the selected item to its content element, which is cached per item.
EffectivePaneDisplayMode { get; } Gets the placement in effect, with Auto already resolved: never returns Auto. Raises EffectivePaneDisplayModeChanged when it changes.
FooterContentSelector { get; set; } Gets or sets the selector mapping a selected footer item to its content element.
FooterPane { get; } Gets the bottom-pinned footer list. Prefer the typed FooterItems extension.
IsPaneOpen { get; set; } Gets or sets whether the pane is expanded (an icon rail when inline, hidden when overlaid).
IsPaneToggleButtonVisible { get; set; } Gets or sets whether the toggle button is shown; hiding it pins the pane to its current state.
Pane { get; } Gets the navigation pane list. Prefer the typed Items extension.
PaneDisplayMode { get; set; } Gets or sets the requested pane placement; Auto resolves from the width.
PaneIsRail { get; } Gets whether the pane is a closed inline pane, that is an icon-only rail.
PaneShowsText { get; } Gets whether the pane currently shows item text.
PaneWidth { get; set; } Gets or sets the expanded pane width.
SelectedIndex { get; set; } Gets or sets the selected item index (-1 = none).
SelectedItem { get; } Gets the selected item object (from either the main or footer region), or null.
event EffectivePaneDisplayModeChanged Occurs after EffectivePaneDisplayMode changes, once the layout pass that resolved it has finished, so a handler may invalidate layout without re-entering it.
event SelectionChanged Occurs when the selection changes.
static readonly CompactPaneWidthProperty
static readonly IsPaneOpenProperty
static readonly IsPaneToggleButtonVisibleProperty
static readonly PaneDisplayModeProperty
static readonly PaneWidthProperty