Hi there,
I would like to restrict the user from adding several buttons to the QaT. I don't want to completely disable that ability for all buttons, just a select few. Is there any built in way to do this?
I tried setting the IsQatCommonTool="False" in my xaml but that didn't seem to do the trick.
Here's an example of one of the buttons I'd like to disable this functionality for:
<igRibbon:ButtonTool igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge" Id="btnEditUser" Caption="Edit" Command="efcCmd:efcCommands.EditUser" SmallImage="/efcClient;component/Resource/userEdit16x16.png" LargeImage="/efcClient;component/Resource/userEdit48x48.png" IsQatCommonTool="False" />
Thanks in advance!
Hello Stephan,
In the time since 2010, we have devised a way that you can hide the context menu items that allow additions to the Quick Access Toolbar in the XamRibbon. To do this, I would recommend that you write a style for RibbonContextMenu and use an EventSetter to handle the Opened event. In this Opened event, you can cast the sender of the event to a RibbonContextMenu and loop through its Items collection, searching each menu item's header for a mentioning of "Quick Access Toolbar." If there exists a menu item that meets that criteria, you can remove it from the RibbonContextMenu's Items collection.
I have attached a sample project to demonstrate the above.
I hope this helps. Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Hi Andrew,
I have a question concerning the usage of the quick access toolbar in WPF (C#).
I would like to prevent some ribbon tools from being added to the quick access toolbar.
Due to a post you answered in 2010 Office UI Guidelines do not permit suppressing this option via the right click menu.
Since we have progressed a little in time I hope that there might be a solution to this issue allowing some more flexibility.
Is there a new approach in the meantime?
Best,
Stephan.
Thanks Andrew!
It seems like this is more work than it's worth. I'll just accept the Office UI requirements and move on.
There is no exposed way to prevent this on a per tool basis. It was implemented this way because the Office UI Guidelines indicate that the right click menu of controls must include the option to add them to the QAT. The only thing available currently is that custom tools can indicate via their RibbonToolProxy that that type of tool cannot be added to the QAT.