NavigationViewItem NavigationViewItem NavigationViewItem NavigationViewItem Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents the container for an item in a NavigationView control.

public : class NavigationViewItem : NavigationViewItemBase, INavigationViewItempublic class NavigationViewItem : NavigationViewItemBase, INavigationViewItemPublic Class NavigationViewItem Inherits NavigationViewItemBase Implements INavigationViewItem// You can use this class in JavaScript.
<NavigationViewItem .../>

Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Constructors

NavigationViewItem() NavigationViewItem() NavigationViewItem() NavigationViewItem()

Prerelease. Initializes a new instance of the NavigationViewItem class.

public : NavigationViewItem()public NavigationViewItem()Public Sub New()// You can use this method in JavaScript.

Properties

CompactPaneLength CompactPaneLength CompactPaneLength CompactPaneLength

Prerelease. Gets the CompactPaneLength of the NavigationView that hosts this item.

public : double CompactPaneLength { get; }public double CompactPaneLength { get; }Public ReadOnly Property CompactPaneLength As double// You can use this property in JavaScript.
Value
double double double double

The CompactPaneLength of the NavigationView that hosts this item.

CompactPaneLengthProperty CompactPaneLengthProperty CompactPaneLengthProperty CompactPaneLengthProperty

Prerelease. Identifies the CompactPaneLength dependency property.

public : static DependencyProperty CompactPaneLengthProperty { get; }public static DependencyProperty CompactPaneLengthProperty { get; }Public Static ReadOnly Property CompactPaneLengthProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the CompactPaneLength dependency property.

Icon Icon Icon Icon

Prerelease. Gets or sets the icon to show next to the menu item text.

public : IconElement Icon { get; set; }public IconElement Icon { get; set; }Public ReadWrite Property Icon As IconElement// You can use this property in JavaScript.
<NavigationViewItem Icon="symbolName" .../>

Value
IconElement IconElement IconElement IconElement

The icon to show next to the menu item text. The default in null.

IconProperty IconProperty IconProperty IconProperty

Prerelease. Identifies the Icon dependency property.

public : static DependencyProperty IconProperty { get; }public static DependencyProperty IconProperty { get; }Public Static ReadOnly Property IconProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Icon dependency property.