I have build two toolPalette and I have added them to two different groups looking to the DAML file they have same attributes:
<group id="ImportTools" caption="Import tools" appearsOnAddInTab="false" condition="ImportSources_condition" keytip="IT">
<toolPalette refID="ImportSources_ToolPalette" size="large" />
</group>
<group id="IntersectionsManager" caption="Intersections Manager" appearsOnAddInTab="false" condition="EditableMapViewActive_condition" keytip="IM">
<toolPalette refID="IntersectionsManager_ToolPalette" size="large" />
<button refID="IntersectionManagerApply_btn" size="large" />
<button refID="IntersectionManagerCancel_btn" size="large" />
</group>
<toolPalette id="ImportSources_ToolPalette" showItemCaption="true" itemsInRow="1">
<tool refID="ImportSources_ByRectangle_tool" />
<tool refID="ImportSources_ByCircle_tool" />
<tool refID="ImportSources_ByPolygon_tool" />
<tool refID="ImportSelectedSources_btn" />
</toolPalette>
<toolPalette id="IntersectionsManager_ToolPalette" showItemCaption="true" itemsInRow="1">
<tool refID="IntersectionsManager_ByRectangle_tool" />
<tool refID="IntersectionsManager_ByCircle_tool" />
<tool refID="IntersectionsManager_ByPolygon_tool" />
<tool refID="IntersectionsManager_Selection_btn" />
</toolPalette>
All the referenced tools have set largeImage and smallImage properties and the image files are marked as "AddInContent" in the project.
During the execution the items in the IntersectionsManager_ToolPalette are drawn using the largeImage 32x32 and they are rendered at the correct size, the items in the ImportSources_ToolPalette are drawn using the largeImage 32x32 but they are rendered small (16x16), shifted to the left and half icon is missing.
Any suggestion?
Solved! Go to Solution.
Finally, I have found the trick. It was caused by the image itself.
I have to save the image as PNG without Exif information and 8bpc RGBA
Hi Mario.
Your buttons have size attribute which is "large". I add the same attribute to your tools:
<toolPalette id="ImportSources_ToolPalette" showItemCaption="true" itemsInRow="1">
<tool refID="ImportSources_ByRectangle_tool" size="large"/>
<tool refID="ImportSources_ByCircle_tool" size="large"/>
<tool refID="ImportSources_ByPolygon_tool" size="large"/>
<tool refID="ImportSelectedSources_btn" size="large"/>
</toolPalette>
Hi Gintautas.
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:
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.
Finally, I have found the trick. It was caused by the image itself.
I have to save the image as PNG without Exif information and 8bpc RGBA