Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

10.4. C# Ribbon XML

The Ribbon XML shown in Listing Listing 10-39 is very similar to the XML code shown in Listing 10-38, except for using different id values for the tab, group, and buttons. You should always use unique id values for each addin you write so that your user interface is completely independent of any other addin's user interface.

Example 10.39. Listing 10-39

<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns = "http://schemas.microsoft.com/office/2006/01/customui"
          onLoad = "Ribbon_OnLoad" >
  <ribbon>
    <tabs>
      <tab id="cstaskmantab" label="Task Manager" visible="true"
          insertAfterMso="TabTask" >
        <group id="csgrouptask" label="Task Manager" visible="true">
          <button id="cstasks1" size="normal" label="Show Related Tasks"
            onAction="CS_Action" getImage="CS_GetImage" />
          <button id="cstasks2" size="normal" label="Add Child Task"
            onAction="CS_Action" getImage="CS_GetImage" />
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial