Table of Contents

Interface INavigationViewItem

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

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

object

Icon

Gets or sets the icon displayed in the MenuItem object.

IconElement? Icon { get; set; }

Property Value

IconElement

Id

Gets the unique identifier that allows the item to be located in the navigation.

string Id { get; }

Property Value

string

InfoBadge

InfoBadge? InfoBadge { get; set; }

Property Value

InfoBadge

IsActive

Gets a value indicating whether the current element is active.

bool IsActive { get; }

Property Value

bool

IsExpanded

Gets or sets a value indicating whether the sub-MenuItems are expanded.

bool IsExpanded { get; }

Property Value

bool

MenuItems

Gets the collection of menu items displayed in the NavigationView.

IList MenuItems { get; }

Property Value

IList

MenuItemsSource

Gets or sets an object source used to generate the content of the NavigationView menu.

object? MenuItemsSource { get; set; }

Property Value

object

NavigationCacheMode

Gets or sets the caching characteristics for a page involved in a navigation.

NavigationCacheMode NavigationCacheMode { get; set; }

Property Value

NavigationCacheMode

NavigationViewItemParent

Gets or sets the parent if it's in MenuItems collection

INavigationViewItem? NavigationViewItemParent { get; }

Property Value

INavigationViewItem

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

string

TargetPageType

Gets or sets the type of the page to be navigated. (Should be derived from FrameworkElement).

Type? TargetPageType { get; set; }

Property Value

Type

Template

Gets or sets the template property

ControlTemplate? Template { get; set; }

Property Value

ControlTemplate

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

Event Type

RoutedEventHandler