-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Automation.Peers.TreeViewItemAutomationPeer.ExpandCollapseState |
winrt property |
Gets a value indicating the expanded or collapsed state of the associated TreeViewItem.
Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Automation.Peers.TreeViewItemAutomationPeer.ExpandCollapseState (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
The expanded or collapsed state of the associated TreeViewItem. The default value is Expanded.
ExpandCollapseState refers to the visibility of immediate child objects only, it does not refer to the visibility of all descendant objects.