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
345
Prevent Tool or Group from being added to QAT
posted

Hi,

I am looking for a way to prevent certain tools and Ribbon Groups from being added to the QAT.  I thought I might attach to the Cloned event and then remove the clone from the QAT, but this does not work for Groups.  What is the best way to do this?

Thanks

Parents
No Data
Reply
  • 54937
    Offline posted

    Unfortunately there is a public property to prevent a RibbonGroup/Tool from being added to the qat. You can prevent a tool from being added to the QAT by deriving from it, reimplementing the IRibbonTool interface and returning a derived RibbonToolProxy that returns false from its CanAddToQat. This is normally done if you have a tool type that shouldn't be put into the qat. However there is no mechanism for preventing a group from being added to the qat. The Microsoft Office UI Guidelines require that a tool or group must provide the option to add that item to the QAT.

Children