3

How is it possible to delete a custom root menu developed in VS?

I have gone through some walkthroughs and added an add-in that includes a button like so:

 <AddIn language="CLR" library="CustomUIElements.dll" namespace="CustomUIElements">
 <ArcMap>
 <Commands>
 <Button id="CustomUIElements_ZoomToLayerButton" 
 class="ZoomToLayerButton" 
 message="Zoom to selected layer" 
 caption="ZoomToLayer" 
 tip="Zoom to default extent" 
 category="Add-In Controls" 
 image="Images\ZoomToLayerButton.png">
 <Help heading="Zoom To Selected Layer">Set's the extent of selected layer</Help>
 </Button> 
 </Commands>
 <Menus>
 <Menu id="CustomUIElements_Zoom_Commands" caption="Zoom Commands" isRootMenu="true">
 <Items>
 <Button refID="CustomUIElements_ZoomToLayerButton" />
 </Items>
 </Menu>
 </Menus>
 </ArcMap>
 </AddIn>

Now ArcMap has the menu "Zoom Commands" but how do I remove it?

CaptDragon
13.5k7 gold badges57 silver badges96 bronze badges
asked Sep 12, 2012 at 12:45
1
  • 1
    Seems that this can be solved by just running a 'Clean' on the solution in VS. The ArcGIS SDK seems to take care of unregistering and removing the menu from ArcMap. Commented Sep 12, 2012 at 13:22

1 Answer 1

3

I guess I could just post my comment as an answer:

Perform a 'Clean' on the solution in Visual Studio. The ArcGIS SDK seems to take care of unregistering and removing the menu from ArcMap after the clean in Visual Studio has completed.

answered Sep 13, 2012 at 7:46
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.