Interface INavigationViewItem
Represents the container for an item in a NavigationView control.
public interface INavigationViewItem
Properties
Content
Gets or sets the content
object Content { get; set; }
Property Value
Icon
Gets or sets the icon displayed in the MenuItem object.
IconElement? Icon { get; set; }
Property Value
Id
Gets the unique identifier that allows the item to be located in the navigation.
string Id { get; }
Property Value
InfoBadge
InfoBadge? InfoBadge { get; set; }
Property Value
IsActive
Gets a value indicating whether the current element is active.
bool IsActive { get; }
Property Value
IsExpanded
Gets or sets a value indicating whether the sub-MenuItems are expanded.
bool IsExpanded { get; }
Property Value
MenuItems
Gets the collection of menu items displayed in the NavigationView.
IList MenuItems { get; }
Property Value
MenuItemsSource
Gets or sets an object source used to generate the content of the NavigationView menu.
object? MenuItemsSource { get; set; }
Property Value
NavigationCacheMode
Gets or sets the caching characteristics for a page involved in a navigation.
NavigationCacheMode NavigationCacheMode { get; set; }
Property Value
NavigationViewItemParent
Gets or sets the parent if it's in MenuItems collection
INavigationViewItem? NavigationViewItemParent { get; }
Property Value
TargetPageTag
Gets or sets the unique tag used by the parent navigation system for the purpose of searching and navigating.
string TargetPageTag { get; set; }
Property Value
TargetPageType
Gets or sets the type of the page to be navigated. (Should be derived from FrameworkElement).
Type? TargetPageType { get; set; }
Property Value
Template
Gets or sets the template property
ControlTemplate? Template { get; set; }
Property Value
Methods
Activate(INavigationView)
Correctly activates
void Activate(INavigationView navigationView)
Parameters
navigationView
INavigationView
Deactivate(INavigationView)
Correctly deactivates
void Deactivate(INavigationView navigationView)
Parameters
navigationView
INavigationView
Events
Click
Add / Remove ClickEvent handler.
event RoutedEventHandler Click