Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
Disabling Ribbon Tab
posted

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

Parents
  • 5389
    Suggested Answer
    posted

    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~

Reply Children