Select to view content in your preferred language

Contents Expand All Collapse All

81
1
2 weeks ago
Status: Open
Labels (2)
RabahCherchem
Emerging Contributor

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.

 

1 Comment
SumitMishra_016

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

    SumitMishra_016_0-1744795560822.pngSumitMishra_016_1-1744795716727.png