ApplicationMenu.RecentItems property
Represents a container for the Recent Items control in the Application Menu.
<ApplicationMenu.RecentItems
CommandName = "xs:positiveInteger or xs:string"
>
child elements
</ApplicationMenu.RecentItems>
Attribute | Type | Required | Description |
---|---|---|---|
CommandName |
xs:positiveInteger or xs:string |
No |
Associates the element with a Command. The value must be unique within the Ribbon XML document. Maximum length: 100 characters. |
Element | Description |
---|---|
RecentItems |
Must occur exactly once |
Element |
---|
ApplicationMenu |
Optional.
May occur at most once for each ApplicationMenu element.
The Recent Items control displays the most recently used (MRU) items list of the Ribbon application.
The following example demonstrates the basic markup for the Recent Items control.
The following example shows a RecentItems Command declaration.
<!-- Command declaration for most recently used items. -->
<Command Name="cmdMRUItems"
Symbol="ID_FILE_MRUITEMS"
Id="25050"/>
The following example shows the associated ApplicationMenu.RecentItems and RecentItems controls declaration.
<!-- Most recently used items collection. -->
<ApplicationMenu.RecentItems>
<RecentItems CommandName="cmdMRUItems"/>
</ApplicationMenu.RecentItems>
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |