InRibbonGallery.MenuLayout property
Represents a container for In-Ribbon Gallery drop-down menu layouts.
Usage
<InRibbonGallery.MenuLayout>
child elements
</InRibbonGallery.MenuLayout>
Attributes
There are no attributes.
Child elements
Element | Description |
---|---|
FlowMenuLayout |
Must occur exactly once |
VerticalMenuLayout |
Must occur exactly once |
Parent elements
Element |
---|
InRibbonGallery |
Remarks
Optional.
May occur at most once for each InRibbonGallery element.
Note
A maximum of one child element (VerticalMenuLayout or FlowMenuLayout) is allowed.
Examples
The following example demonstrates the basic markup for the In-Ribbon Gallery.
This section of code shows the InRibbonGallery.MenuLayout control declaration.
<!-- InRibbonGallery -->
<Group CommandName="cmdInRibbonGalleryGroup" SizeDefinition="OneInRibbonGallery">
<InRibbonGallery CommandName="cmdInRibbonGallery"
MaxColumns="10"
MaxColumnsMedium="5"
MinColumnsLarge="5"
MinColumnsMedium="3"
Type="Items">
<InRibbonGallery.MenuLayout>
<VerticalMenuLayout Rows="2"
Gripper="Vertical"/>
</InRibbonGallery.MenuLayout>
<InRibbonGallery.MenuGroups>
<MenuGroup>
<Button CommandName="cmdButton1"></Button>
<Button CommandName="cmdButton2"></Button>
</MenuGroup>
<MenuGroup>
<Button CommandName="cmdButton3"></Button>
</MenuGroup>
</InRibbonGallery.MenuGroups>
</InRibbonGallery>
</Group>
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |