Ribbon.ApplicationMenu property

Represents the Application Menu.

Usage

<Ribbon.ApplicationMenu>
  child elements
</Ribbon.ApplicationMenu>

Attributes

There are no attributes.

Child elements

Element Description
ApplicationMenu
Must occur exactly once

Parent elements

Element
Ribbon

Remarks

Required.

May occur at most once for each Ribbon.

Examples

The following example demonstrates the basic markup for the Ribbon.ApplicationMenu element.

This section of code shows the Ribbon.ApplicationMenu control declaration.

<!-- Control declarations for Application Menu items. -->
<Ribbon.ApplicationMenu>
  <ApplicationMenu CommandName="cmdFileMenu">
    <!-- Most recently used items collection. -->
    <ApplicationMenu.RecentItems>
      <RecentItems CommandName="cmdMRUItems"/>
    </ApplicationMenu.RecentItems>
    <!-- Menu items collection. -->
    <MenuGroup>
      <Button CommandName="cmdNew" />
      <Button CommandName="cmdOpen" />
      <Button CommandName="cmdSave" />
    </MenuGroup>
    <MenuGroup>
      <Button CommandName="cmdPrint" />
      <Button CommandName="cmdExit" />
    </MenuGroup>
  </ApplicationMenu>
</Ribbon.ApplicationMenu>

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]