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
575
Hide tools from the ribbon
posted

Hi

i've tried to hide some tools on the ribbon using the

uToolBar.Ribbon.Tabs[1].Groups[0].Tools[1].SharedProps.Visible = false;

but it's just Disbale it as i use .SharedProps.Enable= false;

is this a bug ?,if not how i can do it ?

Thanks Alot

  • 44743
    posted

    Tools in the ribbon cannot be hidden by default because the Office 2007 UI Guidelines state that the contents of each ribbon tab should remain unchanged, so when you set the Visible property to False, the tool is disabled instead. However, you can work around this by setting Office2007UICompatibility to False.

  • 1310
    posted

    xenon2008,

    I have tried your code:

    uToolBar.Ribbon.Tabs(0).Groups(0).Tools(0).SharedProps.Visible = false;

    in my ribbon and my tool button is not visible.

    Are you wanting it to be Disabled, but still Visible?

  • 45049
    posted

    Mike Dour comments on this behavior in the following post:
    http://forums.infragistics.com/forums/p/9075/35825.aspx#35825