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
500
Enable/Disable (not hide) ribbon tabs
posted

Seems like it must be simple... What's the correct way to

 

a. disable/enable the entire ribbon

b. disable/enable individual ribbon tabs

Parents
No Data
Reply
  • 1360
    posted

    You can disable them like this (reverse it to enable tabs):

     

                _ultraToolbarsManager.AutoGenerateKeyTips = false;

                foreach (RibbonTab tab in _ultraToolbarsManager.Ribbon.Tabs)
                {
                    if (tab != _ultraToolbarsManager.Ribbon.SelectedTab && tab.UIElement!=null)
                    {
                        tab.UIElement.Enabled = false;
                    }

                }

Children
No Data