<GalleryButton> (RibbonDiffXml)
Applies To: Dynamics CRM 2013
Deprecated: Specified a button control within a gallery element.
Important
This control was deprecated in Microsoft Dynamics CRM 2011. This control will not render with Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online.
Syntax
<GalleryButton
Alt="String"
Command="String"
CommandPreview="String"
CommandRevert="String"
CommandType=["General" | "OptionSelection" | "IgnoredByMenu"]
CommandValueId="String"
ElementDimensions=
["Size16by16" |
"Size32by32" |
"Size48by48" |
"Size64by48" |
"Size72by96" |
"Size96by72" |
"Size96by96" |
"Size128by128" |
"Size190by30" |
"Size190by40" |
"Size190by50" |
"Size190by60"]
Id="String"
Image="String"
ImageClass="String"
ImageLeft="Non Positive Integer"
ImageTop="Non Positive Integer"
InnerHTML="String"
MenuItemId="String"
QueryCommand="String"
Sequence="Integer"
TemplateAlias="String"
ToolTipDescription="String"
ToolTipHelpKeyWord="String"
ToolTipImage32by32="String"
ToolTipImage32by32Class="String"
ToolTipImage32by32Left="Non Positive Integer"
ToolTipImage32by32Top="Non Positive Integer"
ToolTipShortcutKey="String"
ToolTipTitle="String"
/>
Attributes and Elements
The following table lists the attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
Type |
Usage |
||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Alt |
String or reference to a localized label to display as alternative text. |
String |
Optional |
||||||||
Command |
Specifies the ID of the ribbon command for this control. |
String |
Optional |
||||||||
CommandPreview |
Specifies the ID of the ribbon command to run when the cursor hovers over the control before it is selected. |
String |
Optional |
||||||||
CommandRevert |
Specifies the ID of the ribbon command to run when the user selects undo. |
String |
Optional |
||||||||
CommandType |
Allows for specifying a different type of command. Valid values:
|
Enumeration |
Optional |
||||||||
CommandValueId |
A string that is sent with the command event when the button is clicked. |
String |
Optional |
||||||||
ElementDimensions |
Controls the size of a Gallery or GalleryButton element. Valid values:
|
Enumeration |
Optional |
||||||||
Id |
Specifies a unique identifier for the definition of a ribbon element. The strongly recommended naming convention is to use a period to separate the parts of the name like so: [solution identifier].[entity].[ribbon].[function].[element name]. For example: MyISV.account.form.SendToOtherSystem.Button. Use the {!EntityLogicalName} token in the Id attribute when you define a ribbon element that will be used for multiple entities. This inserts the entity logical name into the Id value to make sure that the Id value is globally unique. For example, if you use MyISV.{!EntityLogicalName}.form.SendToOtherSystem.Button with the account entity, the Id will be MyISV.account.form.SendToOtherSystem.Button. For the contact entity, the Id will be MyISV.contact.form.SendToOtherSystem.Button. Important If you don’t set a globally unique Id value, the ribbon might not display. |
String |
Required |
||||||||
Image |
A server-relative URL to a file that contains an image to be used as an icon.If an Image attribute is not defined, an InnerHTML attribute must be defined. |
String |
Optional |
||||||||
ImageClass |
The name of a CSS class selector to be applied to the image. |
String |
Optional |
||||||||
ImageLeft |
A negative integer that represents an offset for the left edge of the image. Use this attribute when the Image attribute points to an image file that contains images for several icons. |
Non positive Integer |
Optional |
||||||||
ImageTop |
A negative integer that represents an offset for the top edge of the image. Use this attribute when the Image attribute points to an image file that contains images for several icons. |
Non positive Integer |
Optional |
||||||||
InnerHTML |
HTML markup that illustrates the choice that the button represents.If the InnerHTML attribute is not defined, the Image attribute must be defined. |
String |
Optional |
||||||||
MenuItemId |
Specifies a reference from a control to the ID of a menu item. |
String |
Optional |
||||||||
QueryCommand |
Specifies the name of the command to run when polling for state information. |
String |
Optional |
||||||||
Sequence |
Specify the location of the ribbon modification by setting the Sequence value higher or lower than existing ribbon elements. |
Integer |
Optional |
||||||||
TemplateAlias |
Associates a ribbon element child of CommandUIDefinition with a location placeholder within a child of a Layout element. This value defines where the control will display within a group of controls when the layout changes. |
String |
Optional |
||||||||
ToolTipDescription |
Specifies a string to display for the tooltip for a control. This can reference a LocLabel element using the $LocLabels: directive, for example, "$LocLabels:MyISV.account.Save.Button.Tooltip". |
String |
Optional |
||||||||
ToolTipHelpKeyWord |
This element is not used in Microsoft Dynamics CRM. |
String |
Optional |
||||||||
ToolTipImage32by32 |
Specifies a 32 by 32 pixel image to be displayed with the tooltip. |
String |
Optional |
||||||||
ToolTipImage32by32Class |
Specifies a CSS class to apply to the 32 by 32 pixel image to be displayed with the tooltip. |
String |
Optional |
||||||||
ToolTipImage32by32Left |
Specifies the number of pixels to move the tooltip 32 by 32 pixel image to the left. This is represented by a negative number. |
Non positive Integer |
Optional |
||||||||
ToolTipImage32by32Top |
Specifies the number of pixels to move the tooltip 32 by 32 pixel image to the top. This is represented by a negative number. |
Non positive Integer |
Optional |
||||||||
ToolTipShortcutKey |
This element is not used in Microsoft Dynamics CRM. |
String |
Optional |
||||||||
ToolTipTitle |
Specifies a string to display for the title of a tooltip for a control. This is typically the same value as the control LabelText. This can reference a LocLabel element using the $LocLabels: directive, for example, "$LocLabels:MyISV.account.Save.Button.Label". |
String |
Optional |
Child Elements
This element has no child elements.
Parent Elements
Element |
Description |
---|---|
Deprecated: Specified a control that displays a collection of related controls in the Ribbon. If there are too many items in the gallery, an expand arrow is provided to display the rest of the collection in a pane. |
Element Information
XPath |
|
Schema Name |
GalleryButtonType |
Validation File |
RibbonWSS.xsd |
Can be Empty |
Yes |