Skip to content

Latest commit

 

History

History
128 lines (78 loc) · 3.2 KB

windowsribbon-element-dropdowngallery-menulayout.md

File metadata and controls

128 lines (78 loc) · 3.2 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date
DropDownGallery.MenuLayout property
Represents a container for DropDownGallery drop-down menu layouts.
7251e889-377d-4d7f-b049-bd81a202774d
DropDownGallery.MenuLayout property Windows Ribbon
apiref
DropDownGallery.MenuLayout
NA
reference
05/31/2018

DropDownGallery.MenuLayout property

Represents a container for DropDownGallery drop-down menu layouts.

Usage

<DropDownGallery.MenuLayout>
  child elements
</DropDownGallery.MenuLayout>

Attributes

There are no attributes.

Child elements

Element Description
FlowMenuLayout
Must occur exactly once

VerticalMenuLayout
Must occur exactly once

Parent elements

Element
DropDownGallery

Remarks

Optional.

May occur at most once for each DropDownGallery element.

Note

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

Examples

The following example demonstrates the basic markup for the DropDownGallery.

This section of code shows the DropDownGallery.MenuLayout control declaration.

<!-- 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]

See also

Drop-Down Gallery control

Working with Galleries