In my project I need to add items to QuickAccessToolbar, see WordPad sample below.
I found how to add tools to QAT itself here https://ko.infragistics.com/help/winforms/wintoolbarsmanager-add-a-tool-to-the-quick-access-toolbar
But I cannot find how to add tool defaults, that user can check/uncheck during runtime. Here is general explanation, not UltraToolbarsManager related by microsoft: https://docs.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-controls-quickaccesstoolbar
It says that there is a property QuickAccessToolbar.ApplicationDefaults but I cannot find it on ultraToolbarsManager1.Ribbon.QuickAccessToolbar
So I am at loss, my QAT provides only options to Show Below Ribbon and Minimize Ribbon, how can I add more options there?
Hello,
Thank you for contacting Infragistics!
You can try setting the IsPopularCommand on the tool itself to see if that can make it appear where you want. www.infragistics.com/.../infragistics.win.ultrawintoolbars~infragistics.win.ultrawintoolbars.toolbase~ispopularcommand
If not if you are able to switch to our WPF Ribbon you can set the IsQatCommonTool on the tool:www.infragistics.com/.../infragisticswpf.ribbon~infragistics.windows.ribbon.gallerytool~isqatcommontool
Thanks for your response Mike. I tried to set IsPopularCommand on a tool this way: ultraToolbarsManager1.Tools["Print"].IsPopularCommand = true; but got the error "Property or indexer 'ToolBase.IsPopularCommand' cannot be assigned to -- it is read only"
Thank you for the update. On the QuickAccessToolbar there is a collection called ContextMenuTools which appears to be the list/collection you are looking for:www.infragistics.com/.../infragistics.win.ultrawintoolbars~infragistics.win.ultrawintoolbars.quickaccesstoolbar_members
www.infragistics.com/.../infragistics.win.ultrawintoolbars~infragistics.win.ultrawintoolbars.toolscollection
And the collection has an AddTool method:www.infragistics.com/.../infragistics.win.ultrawintoolbars~infragistics.win.ultrawintoolbars.toolscollection~addtool
Thank you Mike, ContextMenuTools property on UltraToolbarsManager.RIbbon.QuickAccessToolbar is exactly what I need.