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
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.
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?
Mike Dour comments on this behavior in the following post:http://forums.infragistics.com/forums/p/9075/35825.aspx#35825