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 |
|
|
|
|
reference |
05/31/2018 |
Represents a container for DropDownGallery drop-down menu layouts.
<DropDownGallery.MenuLayout>
child elements
</DropDownGallery.MenuLayout>
There are no attributes.
Element | Description |
---|---|
FlowMenuLayout |
Must occur exactly once |
VerticalMenuLayout |
Must occur exactly once |
Element |
---|
DropDownGallery |
Optional.
May occur at most once for each DropDownGallery element.
Note
A maximum of one child element (VerticalMenuLayout or FlowMenuLayout) is allowed.
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>
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |