InRibbonGallery.MenuGroups property
Represents a container for the set of drop-down menu items of an In-Ribbon Gallery control.
Usage
<InRibbonGallery.MenuGroups>
child elements
</InRibbonGallery.MenuGroups>
Attributes
There are no attributes.
Child elements
Element | Description |
---|---|
MenuGroup |
Must occur at least once |
Parent elements
Element |
---|
InRibbonGallery |
Remarks
Optional.
May occur at most once for each InRibbonGallery element.
Examples
The following example demonstrates the basic markup for an In-Ribbon Gallery control.
This section of code shows the InRibbonGallery.MenuGroups 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] |