none
Extending Synchronize a task pane with a ribbon toggle button. RRS feed

  • Question

  • Hi,

    I successfully created a custom task pane to a ribbon toggle button using this procedure:

    http://msdn.microsoft.com/en-us/library/bb608590(v=vs.100).aspx

    When I finished, I noticed that there was no ribbon.xml file in the project and the properties dialog for the togglebutton does not appear to have a way to define dynamic labels (GetLabel) or dynamic images (GetImage).  There also doesn't appear to be any way to invalidate the togglebutton so the dynamic labels and/or images can be applied with the checked state changes.

    Is the Ribbon Designer tool limited to only static attributes?  I also didn't see a "ribbon dynamic menu" control in the toolbox.  

    Thanks.


    Greg Maxey Please visit my website at: http://gregmaxey.mvps.org/word_tips.htm

    Tuesday, November 25, 2014 4:39 PM

Answers

  • Hello Greg,

    You are on the right avenue. The Ribbon Designer doesn't allow to add callbacks. Instead, you can design your custom UI using the designer and then generate the Ribbon XML markup for adding required attributes manually.


    Do the right click on the ribbon designer and choose the generate XML option.

    • Edited by Eugene Astafiev Tuesday, November 25, 2014 6:10 PM
    • Marked as answer by Greg Maxey Tuesday, November 25, 2014 6:34 PM
    Tuesday, November 25, 2014 6:09 PM

All replies

  • Hello Greg,

    You are on the right avenue. The Ribbon Designer doesn't allow to add callbacks. Instead, you can design your custom UI using the designer and then generate the Ribbon XML markup for adding required attributes manually.


    Do the right click on the ribbon designer and choose the generate XML option.

    • Edited by Eugene Astafiev Tuesday, November 25, 2014 6:10 PM
    • Marked as answer by Greg Maxey Tuesday, November 25, 2014 6:34 PM
    Tuesday, November 25, 2014 6:09 PM
  • Eugene,

    Thanks for confirming my suspicions.  I'll have to go back an look at generating the XML in more detail.   


    Greg Maxey Please visit my website at: http://gregmaxey.mvps.org/word_tips.htm

    Tuesday, November 25, 2014 6:34 PM