Compartilhar via


MRUSplitButton Element

Applies to: SharePoint Foundation 2010

Defines a control that combines a button and a drop-down menu to display a list of the most-recently used items.

<MRUSplitButton
  Alt="Text"
  CacheMenuVersions="TRUE | FALSE"
  Command="Text"
  CommandMenuOpen="Text"
  CommandMenuClose="Text"
  CommandPreview="Text"
  CommandPreviewRevert="Text"
  Id="Text"
  InitialItem="Text"
  MenuAlt="Text"
  MenuCommand="Text"
  PopulateDynamically=" TRUE | FALSE "
  PopulateQueryCommand="Text"
  PopulateOnlyOnce=" TRUE | FALSE "
  Sequence="Integer"
  QueryCommand="Text"
  TemplateAlias="Text"
  ToolTipImage32by32="Url"
  ToolTipImage32by32Class="Text"
  ToolTipImage32by32Left="Negative Integer"
  ToolTipImage32by32Top="Negative Integer"
  ToolTipTitle="Text"
  ToolTipDescription="Text"
  ToolTipHelpKeyWord="Text"
  ToolTipSelectedItemTitle="Text"
  ToolTipShortcutKey="Text"
/>

Attributes

Attribute

Description

Alt

Optional. Alternative text that is used for the button.

CacheMenuVersions

Optional. TRUE to store previously constructed versions of a dynamic menu. The default is FALSE.

Command

Optional. The name of the command to execute when the control is clicked. If the control is in a CommandUIDefinition element, the value of the Command attribute of the control should be the same as the value of the Command attribute of a corresponding CommandUIHandler element.

CommandMenuOpen

Optional. The name of the command to execute when the drop-down menu is opened.

CommandMenuClose

Optional. The name of the command to execute when the drop-down menu is closed.

CommandPreview

Optional. The name of the command to execute for previewing a selection.

CommandPreviewRevert

Optional. The name of the command to execute to return to the state that existed before previewing a selection.

Id

Required. A string that identifies the control.

InitialItem

Optional. The ID of the menu item to display in the control when it is first rendered.

MenuAlt

Optional. Alternative text to represent the menu.

MenuCommand

Optional. The name of the command to execute when the menu is clicked.

PopulateDynamically

Optional. TRUE to create the menu dynamically. The default is FALSE.

PopulateQueryCommand

Optional. The name of the command to execute when creating a dynamic menu.

PopulateOnlyOnce

Optional. TRUE to populate a dynamic menu only the first time that it is accessed.

Sequence

Optional. An integer that specifies the order of placement among sibling XML nodes.

QueryCommand

Optional. The name of the command to execute when polling for state information.

TemplateAlias

Optional. A string that matches the value of the TemplateAlias attribute for a ControlRef element, an OverflowArea element, or an OverflowSection element in a GroupTemplate element. The TemplateAlias attribute is used to size and position controls within a group when a template is applied to the group.

ToolTipImage32by32

Optional. A server-relative URL to a file that contains a 32-by-32-pixel image to be used in the tooltip, such as "/_layouts/1033/images/formatmap32x32.png".

ToolTipImage32by32Class

Optional. The name of a CSS selector to be applied to the tooltip image.

ToolTipImage32by32Left

Optional. A negative integer that represents an offset for the left edge of the image. Use this attribute when the ToolTipImage32by32 attribute points to an image file that contains the images for many icons. The value of the ToolTipImage32by32Left attribute is used to set the CSS left attribute when the page is created.

ToolTipImage32by32Top

Optional. A negative integer that represents an offset for the top edge of the image. Use this attribute when the ToolTipImage32by32 attribute points to an image file that contains the images for many icons. The value of the ToolTipImage32by32Top attribute is used to set the CSS top attribute when the page is created.

ToolTipTitle

Optional. The text that appears as the title of the tooltip.

ToolTipDescription

Optional. The text that appears in the body of the tooltip.

ToolTipHelpKeyWord

Optional. The keyword that is used by context-sensitive Help.

ToolTipSelectedItemTitle

Optional. The title of the tooltip that appears for the selected item.

ToolTipShortcutKey

Optional. The text to display for the shortcut key in the tooltip. For example, if the shortcut key for the control is ALT + J, the value for this attribute is "ALT + J". The tooltip will display the text for the shortcut key in parentheses after the tooltip title: "(ALT + J)".

Child Elements

Menu

Parent Elements

CommandUIDefinition

Controls

Occurrences

Minimum: 0

Maximum: unbounded