콘텐츠로 이동

NavigationViewMarkupExtensions class

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

Generated fluent setters and event subscriptions for NavigationView.

Guide: C# Markup guide

public static class NavigationViewMarkupExtensions
name description
static CompactPaneWidth(…) Sets the pane width in the compact icon rail.
static IsPaneOpen(…) Sets whether the pane is expanded (an icon rail when inline, hidden when overlaid).
static IsPaneToggleButtonVisible(…) Sets whether the toggle button is shown; hiding it pins the pane to its current state.
static OnEffectivePaneDisplayModeChanged(…) Subscribes handler to EffectivePaneDisplayModeChanged. Occurs after EffectivePaneDisplayMode changes, once the layout pass that resolved it has finished, so a handler may invalidate layout without re-entering it.
static OnSelectionChanged(…) Subscribes handler to SelectionChanged. Occurs when the selection changes.
static PaneDisplayMode(…) Sets the requested pane placement; Auto resolves from the width.
static PaneWidth(…) Sets the expanded pane width.
static SelectedIndex(…) Sets the selected item index (-1 = none).
static WithContentSelector(…) Sets the selector mapping the selected item to its content element, which is cached per item.
static WithFooterContentSelector(…) Sets the selector mapping a selected footer item to its content element.