Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines all the menus and toolbars that a VSPackage implements.
<Menus>
<Menu>... </Menu>
<Menu>... </Menu>
</Menus>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
---|---|
Condition |
Optional. See VSCT XML Schema Conditional Attributes. |
Child Elements
Element |
Description |
---|---|
Defines all the menus and toolbars that a VSPackage implements. |
|
Represents a single menu or toolbar. |
Parent Elements
Element |
Description |
---|---|
Represents the collection of commands in the VSPackage. |
Example
<Commands package="guidMyPackage">
<Menus>
<Menu Condition="'%(DEBUG)' != 'true'"
guid="cmdSetGuidMyProductCommands" id="menuIDMainMenu"
priority="0x0000" type="Menu">
<Annotation>
<Documentation>this is an annotation</Documentation>
<AppInfo>
<CustomData>
<CustomSubElement>Some data</CustomSubElement>
</CustomData>
</AppInfo>
</Annotation>
<CommandFlag>AlwaysCreate</CommandFlag>
<Strings>
<ButtonText>MainMenu</ButtonText>
</Strings>
</Menu>
</Menus>
<Commands>
See Also
Concepts
How VSPackages Add User Interface Elements to the IDE