Compartilhar via


<Menu> (RibbonDiffXml)

Aplica-se a: CRM 2016 on-prem, CRM Online

Especifica um contêiner usado para mostrar menus pop-up.

Sintaxe

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

Atributos e elementos

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

Atributos

Attribute Description Type Usage

Id

Especifica um identificador exclusivo para a definição de um elemento de Faixa de Opções. A convenção de nomenclatura recomendável é usar um ponto para separar as partes do nome, como: [identificador da solução].[entidade].[faixa de opções].[função].[nome do elemento]. Por exemplo: 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.

Importante

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

Elementos filho

Element Description

<MenuSection> (RibbonDiffXml)

Especifica uma seção usada para dividir um menu. Uma seção de menu pode ter um título e controles.

Elemento pai

Element Description

<CommandUIDefinition> (RibbonDiffXml)

Especifica os elementos de Faixa de Opções visíveis a serem incluídos no elemento CustomAction.

<ComboBox> (RibbonDiffXml)

Preterido: Especificava uma lista usada para selecionar um valor clicando ou digitando.

<FlyoutAnchor> (RibbonDiffXml)

Especifica um botão com uma seta para baixo usada para abrir um menu.

<DropDown> (RibbonDiffXml)

Preterido: Especificava uma lista usada para selecionar um valor clicando.

<MRUSplitButton> (RibbonDiffXml)

Preterido: Especificava um controle de botão de divisão que exibe os itens usados mais recentemente.

<SplitButton> (RibbonDiffXml)

Especifica um controle usado como um botão e um menu.

Informações do elemento

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

Consulte também

Outros recursos

Ribbon XML reference
Personalizar os comandos e a faixa de opções

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