VisibilityConstraints Element
Note
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.
Syntax
<VisibilityConstraints>
<VisibilityConstraint>... </VisibilityConstraint>
<VisibilityConstraint>... </VisibilityConstraint>
</VisibilityConstraint>
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 |
---|---|
VisibilityItem Element | Determines the static visibility of commands and toolbars. |
VisibilityConstraints | Determines the static visibility of groups of commands and toolbars. |
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
VisibilityItem Element
Visual Studio Command Table (.Vsct) Files