Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 1.88 KB

File metadata and controls

65 lines (51 loc) · 1.88 KB
title Buttons Element
description The Buttons element groups Button elements, which represent individual commands. This article contains an example.
ms.date 11/04/2016
ms.topic reference
helpviewer_keywords
Buttons element (VSCT XML schema)
VSCT XML schema elements, Buttons
author tinaschrepfer
ms.author tinali
ms.subservice extensibility-integration

Buttons element

Groups Button elements, which represent individual commands.

Syntax

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

Attributes and elements

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

Attributes

Attribute Description
Condition Optional. See Conditional attributes.

Child elements

Element Description
Buttons element Groups Button elements.
Button element Defines a command that the user can interact with.

Parent elements

Element Description
Commands element Represents the collection of commands on the VSPackage toolbar.

Example

<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>

See also