NavigationViewItemAutomationPeer.ExpandCollapseState Property

Definition

Gets the value of the NavigationViewItem.IsExpanded property and returns whether the NavigationViewItem is currently expanded or collapsed.

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

public:
 property ExpandCollapseState ExpandCollapseState { ExpandCollapseState get(); };
ExpandCollapseState ExpandCollapseState();
public ExpandCollapseState ExpandCollapseState { get; }
Public ReadOnly Property ExpandCollapseState As ExpandCollapseState

Property Value

Expanded if the NavigationViewItem is currently expanded, Collapsed otherwise.

Implements

Applies to