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?

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.
    – leon
    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.

0

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.