Select to view content in your preferred language

arcgis pro sdk button with image not shown

572
2
02-28-2023 07:01 AM
Janaki_Gattu
New Contributor

arcgis pro sdk button with image not shown

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

Can you supply the code you've used to build the button and insert the image? Where is the image stored?

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Make sure your image has the 'Build Action' set to 'Resource':

Wolf_0-1677691665541.png

and declare the image in the config.daml as shown (make sure to replace the <your_DLL_Name> with the name of your add-in):

 <button id="TaxParcelPlenary_DisasterFlood" caption="Flood Disaster" className="DisasterFlood" keytip="B3"
                loadOnClick="true"
                largeImage="pack://application:,,,/<your_DLL_Name>;component/Images/DisasterFlood32.png">
          <tooltip heading="Flood Disaster">
            Adjust the Tax Assessment after a declared Flood Disaster<disabledText />
          </tooltip>
 </button>
0 Kudos