<?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: Change addin custom pane icon in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185462#M8284</link>
    <description>&lt;P&gt;Hi, Gintautas. Thanks for your answer. However, my pane (generated with the ArcGIS Pro Visual Studio helper) is defined in its own .xaml file, which has this structure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;UserControl x:Class="myAddin.MapProjectPaneView" ...&amp;gt;
    &amp;lt;UserControl.Resources&amp;gt;
     ...
    &amp;lt;/UserControl.Resources&amp;gt;
    &amp;lt;Grid&amp;gt;
      My controls go here
    &amp;lt;/Grid&amp;gt;
&amp;lt;/UserControl&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Not sure if this is compatible with the &amp;lt;Panes&amp;gt; content you describe for config.daml.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 13:22:41 GMT</pubDate>
    <dc:creator>sbayarri_gilytics</dc:creator>
    <dc:date>2022-06-23T13:22:41Z</dc:date>
    <item>
      <title>Change addin custom pane icon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185419#M8282</link>
      <description>&lt;P&gt;Hi! I'm creating an ArcGIS Pro 2.9 addin with some custom panes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the number of visible panes may multiply, I was wondering how to change the default "green button" icon visible in the pane captions, so different types can be easily seen apart.&lt;/P&gt;&lt;P&gt;I tried finding &lt;EM&gt;largeImage/smallImage&lt;/EM&gt; properties in the UserControl XAML for my panes but they don't seem to exist. I also tried setting the &lt;EM&gt;LargeImage&lt;/EM&gt; and &lt;EM&gt;SmallImage&lt;/EM&gt; properties in the custom ViewModel constructors:&lt;/P&gt;&lt;P&gt;// First option: no image is visible&lt;/P&gt;&lt;P&gt;LargeImage = "pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonRed32.png";&lt;/P&gt;&lt;P&gt;// Second option: some kind of exception, the pane doesn't appear&lt;/P&gt;&lt;P&gt;LargeImage = new BitmapImage(new Uri("pack://application:,,,/Module1;component/Images/GenericButtonRed32", UriKind.Absolute));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Salvador&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 11:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185419#M8282</guid>
      <dc:creator>sbayarri_gilytics</dc:creator>
      <dc:date>2022-06-23T11:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change addin custom pane icon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185429#M8283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Pane in daml has property smallimage:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      &amp;lt;panes&amp;gt;
        &amp;lt;pane id="My_Pane" caption="My Pane" className="MyPaneViewModel" smallImage="Images\pane16.png" defaultTab="xxx" defaultTool="esri_mapping_navigateTool"&amp;gt;
          &amp;lt;content className="MyPaneView" /&amp;gt;
        &amp;lt;/pane&amp;gt;
      &amp;lt;/panes&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Image\pane16.png must be set to AddInContent.&lt;/P&gt;&lt;P&gt;Is it possible to set image on fly I don't know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 11:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185429#M8283</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-06-23T11:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change addin custom pane icon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185462#M8284</link>
      <description>&lt;P&gt;Hi, Gintautas. Thanks for your answer. However, my pane (generated with the ArcGIS Pro Visual Studio helper) is defined in its own .xaml file, which has this structure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;UserControl x:Class="myAddin.MapProjectPaneView" ...&amp;gt;
    &amp;lt;UserControl.Resources&amp;gt;
     ...
    &amp;lt;/UserControl.Resources&amp;gt;
    &amp;lt;Grid&amp;gt;
      My controls go here
    &amp;lt;/Grid&amp;gt;
&amp;lt;/UserControl&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Not sure if this is compatible with the &amp;lt;Panes&amp;gt; content you describe for config.daml.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 13:22:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185462#M8284</guid>
      <dc:creator>sbayarri_gilytics</dc:creator>
      <dc:date>2022-06-23T13:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change addin custom pane icon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185609#M8285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have copied code from my addin. It works as in your attached picture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s.&lt;/P&gt;&lt;P&gt;You can check ArcGIS Community Sample :&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/CustomPaneWithContents/Config.daml" target="_self"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/CustomPaneWithContents/Config.daml&lt;/A&gt;&amp;nbsp; Change daml'e&amp;nbsp; as I wrote above with your own picture&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 17:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185609#M8285</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-06-23T17:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change addin custom pane icon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185724#M8286</link>
      <description>&lt;P&gt;Note: Salvador, the file Gintautas is referring to is the &lt;STRONG&gt;Config.daml&lt;/STRONG&gt; and not the user control .xaml (which contains the WPF definition)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 20:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1185724#M8286</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-06-23T20:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change addin custom pane icon</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1186665#M8303</link>
      <description>&lt;P&gt;Thanks, Gintautas!&amp;nbsp; It is clear now. Even if the custom pane has its own .xaml, its icon can be defined by adding a Pane entry in the config.daml with the corresponding ID and class name. It works as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 11:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-addin-custom-pane-icon/m-p/1186665#M8303</guid>
      <dc:creator>sbayarri_gilytics</dc:creator>
      <dc:date>2022-06-27T11:49:03Z</dc:date>
    </item>
  </channel>
</rss>

