This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
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.
<VisibilityConstraints> <VisibilityConstraint>... </VisibilityConstraint> <VisibilityConstraint>... </VisibilityConstraint> </VisibilityConstraint>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
|Condition||Optional. See Conditional Attributes.|
|VisibilityItem Element||Determines the static visibility of commands and toolbars.|
|VisibilityConstraints||Determines the static visibility of groups of commands and toolbars.|
|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.|
<VisibilityConstraints> <VisibilityItem guid="cmdSetGuidMyProductCommands" id="cmdidAddWidget" context="guidNotViewSourceMode"/> </VisibilityConstraints>