ApplicationMenu.RecentItems property
Represents a container for the Recent Items control in the Application Menu.
Usage
<ApplicationMenu.RecentItems
CommandName = "xs:positiveInteger or xs:string"
>
child elements
</ApplicationMenu.RecentItems>
Attributes
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. |
Child elements
Element | Description |
---|---|
RecentItems |
Must occur exactly once |
Parent elements
Element |
---|
ApplicationMenu |
Remarks
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.
Examples
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>
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |