Share via


NavigationView.Expand(NavigationViewItem) Method

Definition

Expands the specified node in the tree.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

void Expand(NavigationViewItem const& item);
public void Expand(NavigationViewItem item);
Public Sub Expand (item As NavigationViewItem)

Parameters

item
NavigationViewItem

The node to be expanded.

Remarks

Analogous to TreeView.Expand method.

Applies to