none
Change the font size/font color/background color of a label on ribbon in vsto outlook add-in RRS feed

  • Question


  • I am writing a outlook addin using vsto and c#
    I have a xml ribbon bar containing some information that I need to show to the user. For example the xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
      <ribbon>
        <tabs>
          <tab idMso="TabAddIns" label="NEW_TAB">
            <group id="StatsGroup" label="Statistics">
              <labelControl id="lblSmallText" label="Stats are:  "/>
              <labelControl id="lblNormalText" label="Dollars Saved"/>
              <labelControl id="lblBigText"       label="$12345"/>
              <!--
              <labelControl id="lblNormalText" label="as of today"/>
              -->          
            </group>        
          </tab>
        </tabs>
      </ribbon>  
    </customUI>

    I need to INCREASE the font size of one of the labelControl OR alternatively at least be able to change the font or background color to bring the user's attention to it.
    I tried adding font attributes in the xml but it is having no effect.
    Thursday, June 29, 2017 12:51 PM

All replies