title: Dynamically Change Button Image in Excel 2010
body: <p>I'm using XML to create a custom Excel Ribbon in which I have a button that contains an image. I would like to be able to change this image when the button is pressed (like a toggle) to show what state it's in. I have the following XML to describe the button:</p>
  
  <pre><code>&lt;button id="MyButton"
              label="MyLabel"
              screentip="Some useful info."
              onAction="MyAction"
              getImage="GetImage"
              size="large"/&gt;
  </code></pre>
  
  <p>Where the <code>MyAction</code> method is defined as:</p>
  
  <pre><code>public void MyAction(Office.IRibbonControl control)
  {
       // Change button image here...
  }
  </code></pre>
  
  <p>Is there some way I can change the button's image in the <code>MyAction()</code> method?</p>
  
  <p>Cheers</p>