Update image or text on stacked ribbon item

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is about the tooglebutton challenge.
http://thebuildingcoder.typepad.com/blog/2012/11/roll-your-own-toggle-button.html
Im testing using the ribbon instead of a windows form.
With the intention to get into a "modeless" state without the need for idling events.
It works brilliantly expect for one thing.
Changing pushbutton text and/or image works fine only if the pushbotton is placed directly on the panel.
As its done in the "roll your own toogle button" example.
But if the pushbutton is placed stacked or on a slideout it does not work.
When debugging I can verify the values for image and text is actually changing.
So the code runs without errors.
But the ribbon doesnt not update to reflect the change.
Seems there is some hidden stacked "container element" that doesn’t trigger these updates on its stacked members.
I looked for methods like "Ribbon.Refresh/Update/Redraw"…something like that.
And also something like "Ribbon.Removeitem" - and then "update by recreating" the ribbonitems.
Seems you can only hide ribbon items, but not remove them.
Has anyone worked around this before ?