Buttons Element

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Groups Button elements, which represent individual commands.

<Buttons>  
  <Button>... </Button>  
  <Button>... </Button>  
</Buttons>  

The following sections describe attributes, child elements, and parent elements.

Attributes

AttributeDescription
ConditionOptional. See Conditional Attributes.

Child Elements

ElementDescription
Buttons ElementGroups Button elements.
Button ElementDefines a command that the user can interact with.

Parent Elements

ElementDescription
Commands ElementRepresents the collection of commands on the VSPackage toolbar.
<Buttons>  
  <Button guid="guidMenuAndCommandsCmdSet" id="cmdidMyCommand"     priority="0x100" type="Button">  
    <Parent guid="guidMenuAndCommandsCmdSet" id="MyMenuGroup"/>  
    <Icon guid="guidGenericCmdBmp" id="bmpArrow"/>  
    <Strings>  
      <ButtonText>C# Command Sample</ButtonText>  
    </Strings>  
  </Button>  
</Buttons>  

How VSPackages Add User Interface Elements
Commands, Menus, and Toolbars

Show: