Share via


<MenuSection> (RibbonDiffXml)

Si applica a: CRM 2016 on-prem, CRM Online

Specifica una sezione utilizzata per dividere un menu. Una sezione di menu può avere un titolo e contenere controlli.

Sintassi

<MenuSection
 DisplayMode=["Default" | "Small" | "Medium"  | "Large"  | "Text"  | "Menu"  | "Menu16"  | "Menu32"  | "Thin"]
 Id="String"
 MaxHeight="String"
 Scrollable="true"
 Sequence="Integer"
 Title="String">
 [<Controls /> | <Gallery />]
</MenuSection>

Attributi ed elementi

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

Attributi

Attribute Description Type Usage

DisplayMode

Controlla la modalità utilizzata per visualizzare l'elemento.

Valid values:

 

Value Description

Menu

Visualizza l'elemento come un menu.

Menu16

Visualizza l'elemento in un menu con un'altezza pari a 16 pixel.

Menu32

Visualizza l'elemento in un menu con un'altezza pari a 32 pixel.

Enumeration

Optional

Id

Specifica un identificatore univoco per la definizione di un elemento della barra multifunzione. La convenzione di denominazione consigliata è l'utilizzo di un punto per separare le parti del nome, come segue: [identificatore soluzione].[entità].[barra multifunzione].[funzione].[nome elemento]. Ad esempio: 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

MaxHeight

Specifies the maximum height of the section in pixels.

String

Optional

Scrollable

Specifies whether to make this section of the menu scrollable. Set to true to make scrollable. The default is false.

Boolean

Optional

Sequence

Specificare la posizione della modifica della barra multifunzione impostando il parametro Sequence su un valore più alto o più basso degli elementi esistenti della barra multifunzione.

Integer

Optional

Title

Species the label to display for the MenuSection.

String

Optional

Elementi figlio

Element Description

<Controls> (RibbonDiffXml)

Contiene una raccolta di controlli.

<Gallery> (RibbonDiffXml)

Deprecato: viene specificato un controllo che visualizza una raccolta di controlli correlati nella barra multifunzione. Se nella raccolta sono presenti troppi elementi, viene fornita una freccia per espandere la visualizzazione e mostrare il resto della raccolta in un riquadro.

Elementi padre

Element Description

<Menu> (RibbonDiffXml)

Specifica un contenitore utilizzato per mostrare menu a comparsa.

Note

You may get the following error “MenuSections can only have children of type MenuItem, Gallery or GroupPopup.” when viewing a Ribbon that has a MenuSectionDisplayMode attribute value set to the following values: Default, Small, Medium, Large, Text, Thin. While according to the RibbonWSS.xsd these are valid values, they should not be used.

Informazioni elemento

XPath

//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/Menu/MenuSection |
//RibbonDiffXml/CustomActions/CustomAction/CommandUIDefinition/ComboBox/Menu/MenuSection

Schema Name

MenuSectionType

Validation File

RibbonWSS.xsd

Can be Empty

Vedere anche

Altre risorse

Ribbon XML reference
Personalizzare i comandi e la barra multifunzione

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