NavigationViewItemAutomationPeer.ExpandCollapseState 属性

定义

获取 NavigationViewItem.IsExpanded 属性的值,并返回 NavigationViewItem 当前是展开还是折叠。

本文档适用于 Windows 应用 SDKWinUI 的 WinUI 2 for UWP (,请参阅Windows 应用 SDK命名空间) 。

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

属性值

如果 NavigationViewItem 当前已展开,则展开,否则折叠。

实现

适用于