I have a ribbon group that contains two controls, a ComboBoxTool and a ControlContainerTool. Depending on user actions I want to be able show only one of these items in the group, so I set the Enabled and Visible properties of each tool's SharedProps member to show or hide the appropriate controls.
This did work initially, but now for some reason it appears the changes don't update (the enabled state does change but the visible state doesn't) and I have to switch to a different MDI tab then back again (which switches ribbons) to see the changes. :( Is there some way to force the group to redraw itself without having to switch tabs?
Thanks.
Brian
Make sure you have Office2007UICompatibility set to False on each manager, because tools in ribbon groups cannot be hidden when that True. Other than that, it sounds like a bug and I would recommend submitting it to the support group: http://ko.infragistics.com/gethelp.
I already had the Office2007UICompatibility set to false. But after some further investigation I think the the problem is related to merging mdi toolbars. I use the UltraTabbedMdiManager on my main form to implement tabbed mdi behavior, and on a child form I have the ribbon bar with the problem. If I set the MdiMergeable property of the toolbar on the main form to false, then everything works as expected, except of course the toolbars are no longer merged, which doesn't look good. :(
Have you any ideas how I can fix this, or is it a bug after all?