VisibilityConstraints element
Article 01/12/2024
9 contributors
Feedback
In this article
The VisibilityConstraints element determines the static visibility of groups of commands and toolbars. The visibility is first controlled by the Visual Studio integrated development environment (IDE) without loading the VSPackage.
Syntax
<VisibilityConstraints>
<VisibilityItem />
<VisibilityItem />
</VisibilityConstraints>
Attributes and elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Child elements
Parent elements
Element
Description
CommandTable element
Defines all the elements that represent the commands (for example, menu items, menus, toolbars, and combo boxes) that a VSPackage provides to the IDE.
Example
<VisibilityConstraints>
<VisibilityItem guid="cmdSetGuidMyProductCommands" id="cmdidAddWidget"
context="guidNotViewSourceMode"/>
</VisibilityConstraints>
See also