<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Contents Expand All Collapse All in ArcGIS Pro SDK Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-ideas/contents-expand-all-collapse-all/idi-p/1606006</link>
    <description>&lt;P&gt;In ArcGis Pro, under "Contents" pane, we need to have -using contextual menu- an "Expand All" and&amp;nbsp; an "Collapse All" to be able to manage large data in the tree control used to display data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2025 13:52:44 GMT</pubDate>
    <dc:creator>RabahCherchem</dc:creator>
    <dc:date>2025-04-15T13:52:44Z</dc:date>
    <item>
      <title>Contents Expand All Collapse All</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-ideas/contents-expand-all-collapse-all/idi-p/1606006</link>
      <description>&lt;P&gt;In ArcGis Pro, under "Contents" pane, we need to have -using contextual menu- an "Expand All" and&amp;nbsp; an "Collapse All" to be able to manage large data in the tree control used to display data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 13:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-ideas/contents-expand-all-collapse-all/idi-p/1606006</guid>
      <dc:creator>RabahCherchem</dc:creator>
      <dc:date>2025-04-15T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Contents Expand All Collapse All</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-ideas/contents-expand-all-collapse-all/idc-p/1606382#M169</link>
      <description>&lt;P class=""&gt;Yes, you're absolutely right — ArcGIS Pro doesn’t natively include &lt;STRONG&gt;“Expand All”&lt;/STRONG&gt; or &lt;STRONG&gt;“Collapse All”&lt;/STRONG&gt; options in the &lt;STRONG&gt;Contents&lt;/STRONG&gt; pane's contextual menu by default. However, you can &lt;STRONG&gt;customize this behavior&lt;/STRONG&gt; by developing an &lt;STRONG&gt;ArcGIS Pro Add-In using the ArcGIS Pro SDK&lt;/STRONG&gt;, just like the below screenshot.&lt;/P&gt;&lt;P class=""&gt;Using the SDK, you can:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Add a &lt;STRONG&gt;context menu&lt;/STRONG&gt; extension to the TreeView or Contents pane.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Implement ExpandAll() and CollapseAll() methods using WPF TreeView logic.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Bind the logic to a right-click menu (contextual menu) with UI buttons like &lt;STRONG&gt;Expand All&lt;/STRONG&gt; and &lt;STRONG&gt;Collapse All&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_0-1744795560822.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/130331iDF64EA7A454F1D97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_0-1744795560822.png" alt="SumitMishra_016_0-1744795560822.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_1-1744795716727.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/130334iD5FF889A333352D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_1-1744795716727.png" alt="SumitMishra_016_1-1744795716727.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:29:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-ideas/contents-expand-all-collapse-all/idc-p/1606382#M169</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2025-04-16T09:29:12Z</dc:date>
    </item>
  </channel>
</rss>

