<ColorPicker> (RibbonDiffXml)
应用到: CRM 2016 on-prem, CRM Online
不建议:指定用于选择颜色或样式的网格。
重要
This control was deprecated in Microsoft Dynamics CRM 2011. This control will not render with Microsoft Dynamics CRM Online 2016 Update 和 Microsoft Dynamics CRM 2016(本地).
语法
<ColorPicker
Command="String"
CommandPreview="String"
CommandRevert="String"
Id="String"
QueryCommand="String"
Sequence="Integer"
TemplateAlias="String" >
<Colors />
</ColorPicker>
属性和元素
The following table lists the attributes, child elements, and parent elements.
属性
Attribute | Description | Type | Usage |
---|---|---|---|
Command |
指定此控件的功能区命令的 ID。 |
String |
Optional |
CommandPreview |
指定在选定控件之前,光标悬停在控件上方时要运行的功能区命令的 ID。 |
String |
Optional |
CommandRevert |
指定当用户选择“撤消”时要运行的功能区命令的 ID。 |
String |
Optional |
Id |
指定功能区元素的定义的唯一标识符。强烈建议的命名约定是使用句点分隔名称的各个部分,如:[解决方案标识符].[实体].[功能区].[函数].[元素名称]。例如: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 重要 If you don’t set a globally unique Id value, the ribbon might not display. |
String |
Required |
QueryCommand |
指定在轮询状态信息时要运行的命令的名称。 |
String |
Optional |
Sequence |
通过将序列值设置为高于或低于现有功能区元素来指定功能区修改内容的位置。 |
Integer |
Optional |
TemplateAlias |
将 CommandUIDefinition 的功能区元素子级与 Layout 元素子级中的位置占位符关联。此值定义了控件在布局发生更改时在控件组中的显示位置。 |
String |
Optional |
子元素
Element | Description |
---|---|
为颜色选择器控件指定一组颜色。 |
父元素
Element | Description |
---|---|
指定要包含在 CustomAction 元素中的可见 Ribbon 元素。 |
|
包含一个控件集合。 |
元素信息
XPath |
|
Schema Name |
ColorPickerType |
Validation File |
RibbonWSS.xsd |
Can be Empty |
Yes |
另请参阅
其他资源
自定义命令和功能区
Ribbon XML reference
Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.