<?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>topic Re: enable a button for layouts only in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030656#M6263</link>
    <description>&lt;P&gt;From &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Dockpanes#conditions" target="_self"&gt;here&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Previously, Dockpanes could be established with a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;condition&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;so that their content only appears when the condition is satisfied. This has now been deprecated.&lt;/P&gt;&lt;P&gt;You can now use WPF Visibility attributes to display or hide controls in the dockpane. Here are couple of samples in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples" target="_blank" rel="noopener"&gt;arcgis-pro-sdk-community-samples repo&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that implement this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/ProceduralSymbolLayersWithRulePackages" target="_blank" rel="noopener"&gt;Procedural Symbol Layers With Rule Packages&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/ConstructMarkerFromFont" target="_blank" rel="noopener"&gt;Construct Marker From Font&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 25 Feb 2021 20:08:14 GMT</pubDate>
    <dc:creator>KirkKuykendall1</dc:creator>
    <dc:date>2021-02-25T20:08:14Z</dc:date>
    <item>
      <title>enable a button for layouts only</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030594#M6260</link>
      <description>&lt;P&gt;Hi - I'm using&amp;nbsp;condition="esri_mapping_layoutPane" in the Config.daml file to have a button be enabled only in layout mode.&amp;nbsp; This was working until I recently upgraded ArcPro to 2.7.1.&amp;nbsp; Has anything changed to make this not work anymore?&amp;nbsp; the button is always disabled now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;button id="BaseMapProModule_BtnMapDoc" caption="Map Doc" className="BtnMapDoc" loadOnClick="true" smallImage="Images\GenericButtonBlue16.png" largeImage="Images\GenericButtonBlue32.png" condition="esri_mapping_layoutPane"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 18:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030594#M6260</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2021-02-25T18:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: enable a button for layouts only</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030656#M6263</link>
      <description>&lt;P&gt;From &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Dockpanes#conditions" target="_self"&gt;here&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Previously, Dockpanes could be established with a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;condition&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;so that their content only appears when the condition is satisfied. This has now been deprecated.&lt;/P&gt;&lt;P&gt;You can now use WPF Visibility attributes to display or hide controls in the dockpane. Here are couple of samples in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples" target="_blank" rel="noopener"&gt;arcgis-pro-sdk-community-samples repo&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that implement this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/ProceduralSymbolLayersWithRulePackages" target="_blank" rel="noopener"&gt;Procedural Symbol Layers With Rule Packages&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/ConstructMarkerFromFont" target="_blank" rel="noopener"&gt;Construct Marker From Font&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 25 Feb 2021 20:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030656#M6263</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-02-25T20:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: enable a button for layouts only</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030670#M6264</link>
      <description>&lt;P&gt;I'm seeing same issue with button for&amp;nbsp;&lt;SPAN&gt;esri_mapping_layoutPane with 2.7.1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;esri_mapping_mapPane works as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looks like a bug to me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 20:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030670#M6264</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-02-25T20:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: enable a button for layouts only</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030731#M6265</link>
      <description>&lt;P&gt;thanks Kirk, I'll look into this.&amp;nbsp; Are the WPF attributes implemented on the Config.daml or assigned in code?&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 21:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1030731#M6265</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2021-02-25T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: enable a button for layouts only</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1036049#M6338</link>
      <description>&lt;P&gt;Thanks Kirk for pointing this out.&amp;nbsp; This appears to be a problem in 2.7.x.&amp;nbsp; We retested this issue in the upcoming 2.8 release and it has been fixed in 2.8.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 18:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1036049#M6338</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-03-12T18:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: enable a button for layouts only</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1047890#M6450</link>
      <description>&lt;P&gt;Hello and thank you for reporting this issue.&amp;nbsp; It has been addressed for Pro version 2.8.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 22:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/enable-a-button-for-layouts-only/m-p/1047890#M6450</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-04-15T22:47:44Z</dc:date>
    </item>
  </channel>
</rss>

