分享方式:


<Menu> (RibbonDiffXml)

適用於: CRM 2015 on-prem, CRM Online

指定用於顯示快取功能表的容器。

語法

<Menu
 Id="String"
 MaxWidth="String" 
>
 <MenuSection />
</Menu>

屬性和元素

The following table lists the attributes, child elements, and parent elements.

屬性

Attribute Description Type Usage

Id

為功能區元素定義指定唯一識別碼。強烈建議的命名慣例是使用句號分隔名稱的各個部分,如下:[solution identifier].[entity].[ribbon].[function]...[element name]。例如: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.

重要

If you don’t set a globally unique Id value, the ribbon might not display.

String

Required

MaxWidth

The maximum width in pixels.

String

Optional

子元素

Element Description

<MenuSection> (RibbonDiffXml)

指定用於劃分功能表的區段。功能表區段可以有標題並包含控制項。

上層元素

Element Description

<CommandUIDefinition> (RibbonDiffXml)

指定要包含在 CustomAction 元素中的可見 Ribbon 元素。

<ComboBox> (RibbonDiffXml)

已被取代:指定清單,藉由按一下或輸入來選取值。

<FlyoutAnchor> (RibbonDiffXml)

指定具有向下鍵的按鈕,用於開啟功能表。

<DropDown> (RibbonDiffXml)

已被取代:指定清單,藉由按一下來選取值。

<MRUSplitButton> (RibbonDiffXml)

已被取代:指定分割按鈕控制項,用於顯示最近使用的項目。

<SplitButton> (RibbonDiffXml)

指定同時做為按鈕和功能表使用的控制項。

元素資訊

XPath

//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/Menu |
//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/ComboBox/Menu |
//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/Menu/MenuSection/Controls/FlyoutAnchor/Menu |
//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/DropDown/Menu |
//Controls/DropDown/Menu |
//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/MRUSplitButton/Menu |
//Controls/MRUSplitButton/Menu |
//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/SplitButton/Menu |
//Controls/SplitButton/Menu

Schema Name

MenuType

Validation File

RibbonWSS.xsd

Can be Empty

No

請參閱

其他資源

Ribbon XML reference
自訂命令和功能區

Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.