模板:Ribbon.xml

上次修改时间: 2010年4月16日

适用范围: SharePoint Server 2010

以下是您可用于为中间声明性 Microsoft Outlook 2010 解决方案创建 Ribbon.xml 的功能区模板。

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