SplitButtonGallery.MenuGroups property

Represents a container for a set of drop-down menu items in a SplitButtonGallery control.

Usage

<SplitButtonGallery.MenuGroups>
  child elements
</SplitButtonGallery.MenuGroups>

Attributes

There are no attributes.

Child elements

Element Description
MenuGroup
Must occur at least once

Parent elements

Element
SplitButtonGallery

Remarks

Required.

Must occur exactly once for each SplitButtonGallery element.

Examples

The following example demonstrates the basic markup for the SplitButtonGallery.MenuGroups element.

This section of code shows the SplitButtonGallery.MenuGroups control declaration.

<!-- SplitButtonGallery -->
<Group CommandName="cmdSplitButtonGalleryGroup">
  <SplitButtonGallery CommandName="cmdSplitButtonGallery">
    <SplitButtonGallery.MenuLayout>
      <FlowMenuLayout Rows="2"
                      Columns="3"
                      Gripper="None"/>
    </SplitButtonGallery.MenuLayout>
    <SplitButtonGallery.MenuGroups>
      <MenuGroup>
        <Button CommandName="cmdButton1"></Button>
        <Button CommandName="cmdButton2"></Button>
      </MenuGroup>
      <MenuGroup>
        <Button CommandName="cmdButton3"></Button>
      </MenuGroup>
    </SplitButtonGallery.MenuGroups>
  </SplitButtonGallery>
</Group>

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]

See also

Split Button Gallery control

Working with Galleries