SplitButtonGallery.MenuLayout property

Represents a container for Split Button Gallery drop-down menu layouts.

Usage

<SplitButtonGallery.MenuLayout>
  child elements
</SplitButtonGallery.MenuLayout>

Attributes

There are no attributes.

Child elements

Element Description
FlowMenuLayout
Must occur exactly once

VerticalMenuLayout
Must occur exactly once

Parent elements

Element
SplitButtonGallery

Remarks

Optional.

May occur at most once for each SplitButtonGallery element.

Note

A maximum of one child element (VerticalMenuLayout or FlowMenuLayout) is allowed.

Examples

The following example demonstrates the basic markup for the Split Button Gallery.

This section of code shows the SplitButtonGallery.MenuLayout 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