VisibilityConstraints Element
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.
Attributes
Attribute |
Description |
---|---|
Condition |
Optional. See VSCT XML Schema Conditional Attributes. |
Child Elements
Element |
Description |
---|---|
Determines the static visibility of commands and toolbars. |
|
Determines the static visibility of groups of commands and toolbars. |
Parent Elements
Element |
Description |
---|---|
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>