I'm trying to essentially toggle a ribbon button's properties at runtime. I have certain process' lined up to grab the button/RibbonItem instance, but when I attempt to change the button properties, the API returns out of my function having not changed anything. It's doesn't throw an error or anything - it just doesn't do anything...
I essentially iterate through the Ribbon, it's panels and their Source.Items until I find the button I need to adjust. I tried changing it during the iteration and that didn't work; I tried grabbing the button, creating a copy, assigning the new properties to the copy and then reassigning the button as the copy - that didn't work.... As usual, I'm sure it's just some tiny thing I'm missing. I've tried a lot, and nothing seems to be wanting to cooperate with me, so I'm seeing how I can change the button at runtime.
For the record, the Properties I'm trying to modify are 'Name', 'Tooltip', and 'Image'.
Any ideas or direction is greatly appreciated.
Don't forget to mark your answers... It helps the next individual find theirs faster!!
Cheers,
Geoff Overfield
Senior Software Engineer
FabPro, LLC
Solved! Go to Solution.