Skip to main content Link Search Menu Expand Document (external link)

NavigationViewItem

Namespace: FluentAvalonia.UI.Controls

Represents the container for an item in a NavigationView control.

C#

public class NavigationViewItem : NavigationViewItemBase


Xaml

<ui:NavigationViewItem />


Required Template Parts

Name Control Type
FlyoutContentGrid Panel
NVIPresenter NavigationViewItemPresenter
NVIRootGrid Grid
NVIMenuItemsHost ItemsRepeater


Pseudoclasses

:leftnav, :topnav, :topoverflow, :iconleft, :icononly, :contentonly, :selected, :iconcollapsed, :chevronclosed, :chevronopen, :chevronhidden, :infobadge, :pressed, :selected, :disabled, :focus, :focus-visible, :focus-within, :pointerover



Examples and Usage Notes

None yet.


API

Note: Inherited members are not shown


Properties

CompactPaneLength Gets the CompactPaneLength of the NavigationView that hosts this item.
CompactPaneLengthProperty Defines the `FluentAvalonia.UI.Controls.NavigationViewItem.CompactPaneLength` property
HasUnrealizedChildren Gets or sets a value that indicates whether the current item has child items that haven't been shown.
HasUnrealizedChildrenProperty Defines the `FluentAvalonia.UI.Controls.NavigationViewItem.HasUnrealizedChildren` property
IconSource Gets or sets the icon to show next to the menu item text.
IconSourceProperty Defines the `Icon` property
InfoBadge Gets or sets the `FluentAvalonia.UI.Controls.NavigationViewItem.InfoBadge` to display in the NavigationViewItem
InfoBadgeProperty Defines the `FluentAvalonia.UI.Controls.NavigationViewItem.InfoBadge` property
IsChildSelected Gets or sets the value that indicates whether or not descendant item is selected.
IsChildSelectedProperty Defines the `FluentAvalonia.UI.Controls.NavigationViewItem.IsChildSelected` property
IsExpanded Gets or sets a value that indicates whether a tree node is expanded. Ignored if there are no menu items.
IsExpandedProperty Defines the `FluentAvalonia.UI.Controls.NavigationViewItem.IsExpanded` property
MenuItems Gets the collection of menu items displayed as children of the NavigationViewItem.
MenuItemsProperty Defines the `FluentAvalonia.UI.Controls.NavigationViewItem.MenuItems` property
MenuItemsSource Gets or sets an object source used to generate the content of the NavigationViewItem submenu.
MenuItemsSourceProperty Defines the `FluentAvalonia.UI.Controls.NavigationViewItem.MenuItemsSource` property
SelectsOnInvoked Gets or sets a value that indicates whether invoking a navigation menu item also selects it.
SelectsOnInvokedProperty Defines the `FluentAvalonia.UI.Controls.NavigationViewItem.SelectsOnInvoked` property


Events


Methods