Skip to content

INavigationViewItem interface

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.INavigationViewItem Modifiers: public abstract

Summary

        Represents the container for an item in a NavigationView control.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Properties

NameSummary
IdGets unique identifier that allows the item to be located in the navigation.
ContentGets or sets get or sets content.
IconGets or sets the icon displayed in the MenuItem object.
MenuItemsGets the collection of menu items displayed in the NavigationView.
MenuItemsSourceGets or sets an object source used to generate the content of the NavigationView menu.
IsActiveGets a value indicating whether gets information whether the current element is active.
IsExpandedGets or sets a value indicating whether gets information whether the sub-[MenuItems](# are expanded.
HasMenuItemsGets a value indicating whether this instance has menu items.
TargetPageTagGets or sets a unique tag used by the parent navigation system for the purpose of searching and navigating.
TargetPageTypeGets or sets the type of the page to be navigated. (Should be derived from Control).
TargetViewModelTypeGets or sets the target ViewModel type for ViewModel-first navigation. When set this takes precedence over TargetPageType.
TargetHostNameGets or sets an optional host name (navigation host) to target when using ViewModel-first navigation. Leave empty to use the first registered host.
InfoBadgeGets or sets the information badge.
NavigationCacheModeGets or sets specifies caching characteristics for a page involved in a navigation.
TemplateGets or sets template Property.
NavigationViewItemParentGets or sets parent if in [MenuItems](# collection.
IsMenuElementGets or sets a value indicating whether this instance is menu element.

Methods

NameSummary
ActivateCorrectly activates.
DeactivateCorrectly deactivates.

Events

NameSummary
ClickAdd / Remove ClickEvent handler.