Partager via


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

VisibilityItem Element

Determines the static visibility of commands and toolbars.

VisibilityConstraints Element

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

Reference

VisibilityItem Element

Other Resources

Visual Studio Command Table (.Vsct) Files