Del via


<Menu> (RibbonDiffXml)

Gælder for: CRM 2016 on-prem, CRM Online

Angiver en objektbeholder, der bruges til at få vist pop op-menuer.

Syntaks

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

Attributter og elementer

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

Attributter

Attribute Description Type Usage

Id

Angiver et entydigt id for definitionen på et element på båndet. Det anbefales på det kraftigste at bruge navnekonventionen, der adskiller delene i navnet med et punktum som f.eks.: [løsnings-id].[objekt].[bånd].[funktion].[elementnavn]. Et eksempel: 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.

ImportantVigtigt!
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

Underordnede elementer

Element Description

<MenuSection> (RibbonDiffXml)

Angiver en sektion, der bruges til at opdele en menu. En menusektion kan have en titel og indeholde kontrolelementer.

Overordnede elementer

Element Description

<CommandUIDefinition> (RibbonDiffXml)

Angiver de synlige elementer på båndet, der skal inkluderes i et CustomAction-element.

<ComboBox> (RibbonDiffXml)

Udfaset: Angav en liste til valg af en værdi ved at klikke eller skrive.

<FlyoutAnchor> (RibbonDiffXml)

Angiver en knap med en pil ned, der bruges til at åbne en menu.

<DropDown> (RibbonDiffXml)

Udfaset: Angav en liste til valg af en værdi ved at klikke.

<MRUSplitButton> (RibbonDiffXml)

Udfaset: Angav et delt knapkontrolelement, der viste senest anvendte elementer.

<SplitButton> (RibbonDiffXml)

Angiver et objekt, der både bruges som en knap og en menu.

Elementoplysninger

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

Se også

Andre ressourcer

Ribbon XML reference
Tilpasse kommandoer og båndet

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