In ArcGis Pro, under "Contents" pane, we need to have -using contextual menu- an "Expand All" and an "Collapse All" to be able to manage large data in the tree control used to display data.
Yes, you're absolutely right — ArcGIS Pro doesn’t natively include “Expand All” or “Collapse All” options in the Contents pane's contextual menu by default. However, you can customize this behavior by developing an ArcGIS Pro Add-In using the ArcGIS Pro SDK, just like the below screenshot.
Using the SDK, you can:
Add a context menu extension to the TreeView or Contents pane.
Implement ExpandAll() and CollapseAll() methods using WPF TreeView logic.
Bind the logic to a right-click menu (contextual menu) with UI buttons like Expand All and Collapse All
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.