Custom UI elements using add-ins


PurposeThis sample shows how to create a custom button, tool, menu, and toolbar using add-ins for ArcGIS for Desktop applications. 

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Start Visual Studio, open the solution file, and build the project.
  2. Start ArcMap, turn on the Dharma toolbar.
  3. Experiment with the custom controls on the toolbar.

AddGraphicsTool.cs Defines the run time behavior of the custom tool.
ZoomToLayerButton.cs Defines the run time behavior of the custom button.
Config.esriaddinx Esri add-in configuration file.
Download the C# files
AddGraphicsTool.vb Defines the run time behavior of the custom tool.
ZoomToLayerButton.vb Defines the run time behavior of the custom button.
Config.esriaddinx Esri add-in configuration file.
Download the VB.NET files

Download the files for all languages

See Also:

Walkthrough: Building custom UI elements using add-ins




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced