<?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: How can I control the icons' size of the items in a toolPalette or buttonPalette? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800852#M1964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario.&lt;/P&gt;&lt;P&gt;Your buttons have size attribute which is "large". I add the same attribute to your tools:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;toolPalette id="ImportSources_ToolPalette" showItemCaption="true" itemsInRow="1"&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByRectangle_tool" &amp;nbsp;size="large"/&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByCircle_tool" &amp;nbsp;size="large"/&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByPolygon_tool" &amp;nbsp;size="large"/&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSelectedSources_btn" &amp;nbsp;size="large"/&amp;gt;&lt;BR /&gt; &amp;lt;/toolPalette&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2018 11:43:34 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2018-12-12T11:43:34Z</dc:date>
    <item>
      <title>How can I control the icons' size of the items in a toolPalette or buttonPalette?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800851#M1963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have build two toolPalette and I have added them to two different groups looking to the DAML file they have same attributes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;group id="ImportTools" caption="Import tools" appearsOnAddInTab="false" condition="ImportSources_condition" keytip="IT"&amp;gt;&lt;BR /&gt; &amp;lt;toolPalette refID="ImportSources_ToolPalette" size="large" /&amp;gt;&lt;BR /&gt; &amp;lt;/group&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;group id="IntersectionsManager" caption="Intersections Manager" appearsOnAddInTab="false" condition="EditableMapViewActive_condition" keytip="IM"&amp;gt;&lt;BR /&gt; &amp;lt;toolPalette refID="IntersectionsManager_ToolPalette" size="large" /&amp;gt;&lt;BR /&gt; &amp;lt;button refID="IntersectionManagerApply_btn" size="large" /&amp;gt;&lt;BR /&gt; &amp;lt;button refID="IntersectionManagerCancel_btn" size="large" /&amp;gt;&lt;BR /&gt; &amp;lt;/group&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;toolPalette id="ImportSources_ToolPalette" showItemCaption="true" itemsInRow="1"&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByRectangle_tool" /&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByCircle_tool" /&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByPolygon_tool" /&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSelectedSources_btn" /&amp;gt;&lt;BR /&gt; &amp;lt;/toolPalette&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;toolPalette id="IntersectionsManager_ToolPalette" showItemCaption="true" itemsInRow="1"&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="IntersectionsManager_ByRectangle_tool" /&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="IntersectionsManager_ByCircle_tool" /&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="IntersectionsManager_ByPolygon_tool" /&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="IntersectionsManager_Selection_btn" /&amp;gt;&lt;BR /&gt; &amp;lt;/toolPalette&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the referenced tools have set largeImage and smallImage properties and the image files are marked as "AddInContent" in the project.&lt;/P&gt;&lt;P&gt;During the execution the items in the&amp;nbsp;&lt;SPAN&gt;IntersectionsManager_ToolPalette are drawn using the largeImage 32x32 and they&amp;nbsp;are rendered at the correct&amp;nbsp;size, the items in the&amp;nbsp;ImportSources_ToolPalette are drawn using the&amp;nbsp;largeImage&amp;nbsp; 32x32 but they are rendered small (16x16), shifted to the left and half icon is missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2018 12:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800851#M1963</guid>
      <dc:creator>MarioD_Amico</dc:creator>
      <dc:date>2018-12-11T12:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the icons' size of the items in a toolPalette or buttonPalette?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800852#M1964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario.&lt;/P&gt;&lt;P&gt;Your buttons have size attribute which is "large". I add the same attribute to your tools:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;toolPalette id="ImportSources_ToolPalette" showItemCaption="true" itemsInRow="1"&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByRectangle_tool" &amp;nbsp;size="large"/&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByCircle_tool" &amp;nbsp;size="large"/&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSources_ByPolygon_tool" &amp;nbsp;size="large"/&amp;gt;&lt;BR /&gt; &amp;lt;tool refID="ImportSelectedSources_btn" &amp;nbsp;size="large"/&amp;gt;&lt;BR /&gt; &amp;lt;/toolPalette&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2018 11:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800852#M1964</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2018-12-12T11:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the icons' size of the items in a toolPalette or buttonPalette?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800853#M1965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Gintautas.&lt;/P&gt;&lt;P&gt;Thank you for your answer, I have tried but it's not working, moreover size is not a valid attribute for the tool items inside the toolPalette as you can see from the documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic13771.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic13771.html"&gt;CT_ToolPalette Complex Type&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic13662.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic13662.html"&gt;CT_MenuButtonRef Complex Type&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2018 07:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800853#M1965</guid>
      <dc:creator>MarioD_Amico</dc:creator>
      <dc:date>2018-12-13T07:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the icons' size of the items in a toolPalette or buttonPalette?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800854#M1966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use tools inside group and size attribute works. Another way is to put tools to buttonPalette and buttonPallete has attribute size. It works in my project too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2018 08:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800854#M1966</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2018-12-13T08:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the icons' size of the items in a toolPalette or buttonPalette?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800855#M1967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, I have found the trick. It was caused by the image itself.&lt;/P&gt;&lt;P&gt;I have to save the image as PNG without Exif information and 8bpc RGBA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2018 08:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-control-the-icons-size-of-the-items-in-a/m-p/800855#M1967</guid>
      <dc:creator>MarioD_Amico</dc:creator>
      <dc:date>2018-12-13T08:42:36Z</dc:date>
    </item>
  </channel>
</rss>

