DropDownGallery.MenuGroups property
Represents a container for a set of drop-down menu items in a Drop-Down Gallery control.
Usage
<DropDownGallery.MenuGroups>
child elements
</DropDownGallery.MenuGroups>
Attributes
There are no attributes.
Child elements
Element | Description |
---|---|
MenuGroup |
Must occur at least once |
Parent elements
Element |
---|
DropDownGallery |
Remarks
Required.
Must occur exactly once for each DropDownGallery element.
Examples
The following example demonstrates the basic markup for the DropDownGallery.MenuGroups element.
This section of code shows the DropDownGallery.MenuGroups control declaration in a Drop-Down Gallery Command Space.
<!-- DropDownGallery -->
<Group CommandName="cmdDropDownGalleryGroup">
<DropDownGallery CommandName="cmdDropDownGallery"
TextPosition="Hide"
Type="Commands"
ItemHeight="32"
ItemWidth="32">
<DropDownGallery.MenuLayout>
<FlowMenuLayout Rows="2"
Columns="3"
Gripper="None"/>
</DropDownGallery.MenuLayout>
<DropDownGallery.MenuGroups>
<MenuGroup>
<Button CommandName="cmdButton1"></Button>
<Button CommandName="cmdButton2"></Button>
</MenuGroup>
<MenuGroup>
<Button CommandName="cmdButton3"></Button>
</MenuGroup>
</DropDownGallery.MenuGroups>
</DropDownGallery>
</Group>
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |