ArcGIS Pro Button new png image doesn't work

3540
12
12-09-2016 11:24 AM
andresarias
New Contributor II

I'm creating with photoshop png files for the button on an add-in for ArcGIS Pro, but for some reason they are not being displayed (the ones that come with the samples do work). Does anybody know why? #arcgispro #add-ins #buttons

0 Kudos
12 Replies
andresarias
New Contributor II

Thank you Uma, but that button doesn't show on my reply. In any case, you can reproduce what I did:

1. Create a new project with a button

2. Copy a 16x16 and a 32x32 pixel png files in the project images folder.

3. Add them to the collection of Images in the Solution Explorer panel.

4. Replace the file name in the button smallImage and largeImage attributes in the Config.daml file referring to the new png files.

5. Run the project.

Maybe there is something else that I need to do.

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Yes there is a step missing:

 after your step 3. you have to change the "Build Action" (under all image properties) to "AddInContent".

andresarias
New Contributor II

Thank you Wolfgang. Now with the steps clearly stated it works perfectly.

0 Kudos