Customize Outlook UI with Ribbon XML (VBOutlookRibbonXml)

VBOutlookRibbonXml provides the examples on how to customize Microsoft Outlook UI using the Ribbon XML.

 
 
 
 
 
5 Star
(1)
11,499 times
Add to favorites
3/5/2012
E-mail Twitter del.icio.us Digg Facebook
<?xml version="1.0" encoding="UTF-8"?>
<customUI onLoad="Ribbon_Load" loadImage="LoadImage" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon>
    <tabs>
      <tab idMso="TabAddIns" label="Sample Tab" keytip="FT">
        <group id="grpOne" label="Group One">
          <button id="btnWeb" onAction="btnWeb_OnAction" label="Project Home" size="large" image="Globe" />
          <separator id="separator1" />
          <comboBox id="cboMyList" imageMso="FormControlComboBox" supertip="This is a ComboBox&#xD;&#xA;Drop down and Edit are both enabled." label="ComboBox:">
            <item id="__id2" label="Item0" />
            <item id="__id3" label="Item1" />
            <item id="__id4" label="Item2" />
          </comboBox>
          <toggleButton id="tbSecondTab" imageMso="ControlTabControl" onAction="tbSecondTab_OnAction" getPressed="tbSecondTab_GetPressed" label="Second Tab" />
          <checkBox id="chkShowGroup" onAction="chkShowGroup_OnAction" getPressed="chkShowGroup_GetPressed" label="Group Three" />
          <dialogBoxLauncher>
            <button id="grpOneDlgLauncher" onAction="grpOneDlgLauncher_OnAction" />
          </dialogBoxLauncher>
        </group>
        <group id="grpTwo" label="Group Two">
          <splitButton id="splitButton">
            <button id="splitButton__btn" imageMso="AlignLeft" label="SplitButton" onAction="splitButton_Click" />
            <menu id="splitButton__mnu">
              <button id="btnAlignLeft" imageMso="AlignLeft"  onAction="btnAlign_Click" label="Left" />
              <button id="btnAlignCenter" imageMso="AlignCenter" onAction="btnAlign_Click" label="Center" />
              <button id="btnAlignRight" imageMso="AlignRight" onAction="btnAlign_Click" label="Right" />
            </menu>
          </splitButton>
          <editBox id="txtEdit" imageMso="ActiveXTextBox" onChange="txtEdit_OnChange" label="Edit Box:" />
          <labelControl id="lblSample" getLabel="lblSample_GetLabel" />
        </group>
        <group id="grpThree" label="Group Three" getVisible="GetVisible">
          <buttonGroup id="buttonGroup1">
            <button id="btnOne" label="One" showImage="false" />
            <button id="btnTwo" label="Two" showImage="false" />
            <button id="button10" label="Three" showImage="false" />
          </buttonGroup>
          <dynamicMenu id="mnuSample" imageMso="HappyFace" label="Menu Sample" getContent="Ribbon_GetContent" />
          <separator id="separator3" />
          <gallery id="glrCd" label="Disk Gallery" size="large" image="BlankCD">
            <item id="glrAudioCD" label="Audio CD" image="AudioCD" />
            <item id="glrAudioCDPlus" label="Audio CD Plus" image="AudioCDPlus" />
            <item id="glrAudioDVD" label="Audio DVD" image="AudioDVD" />
            <item id="glrBDMovie" label="BD Movie Disk" image="BDMovie" />
            <item id="glrBlankCD" label="Blank CD" image="BlankCD" />
            <item id="glrVCD" label="VCD" image="VCD" />
            <button id="btnBurnDisk" label="Burn Disk" image="BurnCD" />
          </gallery>
        </group>
      </tab>
      <tab id="mySecondTab" label="Second Sample Tab" getVisible="GetVisible">
        <group id="grpMail" label="Mail Item" getVisible="GetVisible">
          <labelControl id="lblMailMode" getLabel="lblMainMode_GetLabel" />
        </group>
        <group id="grpAppointmentItem" label="Appointment Item" getVisible="GetVisible">
          <labelControl id="label1" label="This is an Appointment Item" />
        </group>
        <group id="grpTaskItem" label="Task Item" getVisible="GetVisible">
          <labelControl id="label2" label="This is a Task Item" />
        </group>
        <group id="grpContactItem" label="Contact Item" getVisible="GetVisible">
          <labelControl id="label3" label="This is a Contact Item" />
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>