Hi
I need to disable ribbon tab in my application. I try to disable by using UIElement as follows:
RibbonTab.UIElement.Enabled = false;
But the problem is UIElement is null.
Can anyone let me know how can we disable is ribbon tab?
Thanks,
Anil
Anil,
There is no way to disable a ribbon tab; you can prevent a ribbon tab from being selected by handling the UltraToolbarsManager's BeforeRibbonTabSelected event, checking to see which tab is being selected, and setting e.Cancel to True. Note that in order for this to work, you have to set the UltraToolbarsManager's Office2007UICompatibility property to False.
~Kim~
Kim,
Is there any alternative way to handle this situation when Office2007UICompatibility is set yo true?
There is no other way, since disabling a ribbon tab is not functionality that conforms to the Office 2007 UI look and feel.