Modèle : Ribbon.xml
Dernière modification : vendredi 16 avril 2010
S’applique à : SharePoint Server 2010
Le code suivant définit le modèle de Ruban qui vous permet de créer le fichier Ribbon.xml pour vos solutions Microsoft Outlook 2010 déclaratives intermédiaires.
<!-- If using a custom ribbon manager, you can specify the appropriate callback method for OnLoad. Otherwise use 'OnLoad' as the callback method. -->
<customUI xmlns="https://schemas.microsoft.com/office/2006/01/customui" onLoad="OnLoad" loadImage="GetImage">
<!-- This file defines actions that are exposed as custom ribbons in Outlook 2010. -->
<!-- Actions can be used to navigate to a URL or execute a piece of code when clicked. -->
<!-- Specify the tabs, groups, and controls for your customization. This template defines a custom tab in the ribbon with a group that contains two buttons. -->
<ribbon>
<tabs>
<tab id="EnterUniqueTabID" label="EnterTabDisplayName" getVisible="GetVisible" tag="Solution">
<group id="EnterUniqueGroupID" label="EnterGroupDisplayName" getVisible="GetVisible" tag="Context[<EnterContentTypeNameInOIR.CONFIG>.<EnterGroupID>]">
<button id="EnterUniqueButtonID"
size="large"
label="EnterButtonDisplayName"
onAction="OnAction"
image="EnterIconFileNameWithExtension"
getEnabled ="GetEnabled"
tag="Action[<EnterContentTypeNameInOIR.CONFIG>.<EnterActionNameFromOIR.CONFIG>]"
/>
<button id="EnterUniqueButtonID"
size="large"
label="EnterButtonDisplayName"
onAction="OnAction"
image="EnterIconFileNameWithExtension"
getEnabled ="GetEnabled"
tag="Action[<EnterContentTypeNameInOIR.CONFIG>.<EnterActionNameFromOIR.CONFIG>]"
/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>