Hi,
how can I hide a tool in the ribbonbar? I don`t find a property 'IsVisible' or 'Visibility'.
Regards
Marco
There is no way to toggle the visibility of a tool in the ribbon directly. However, you can use the Ribbons "ToolsNotInRibbon" collection to hold onto tools that do not currently have a place in the ribbon. If you need to toggle visibility one way to do it would be to remove a tool from it's group and add it to the ToolsNotInRibbon collection until you need it for a group again.
Another option is to use a custom style to set the visibility to collapsed as needed. Unfortunately the ability to dynamically toggle the visibility of tools was not one of our targeted use cases.
Hello Marco,
Let Us know if you have any questions with this matter.
Thanks
HI,
is this on your feature list or not?
Hi Marco,
Could you provide some more details about your scenario? Why do you need to hide a tool inside the ribbon?
There are strict guidelines from MSFT, describing how a Ribbon control should look and behave.
Hiding a tool in the Ribbon is against the rules - the tools on the ribbon must not change as a result of user interaction in the document.
You should disable the tools by setting their IsEnabled property to "false" instead of hiding them.
Hope that helps,
OK, thank you. I do this so.