I want to set icon image for ribbon right click cotext menu tools like "Remove from quick access toolbar","Customize the quick access toolbar ".
how to set icon?
Hello Abirami,
I have been investigating into this behavior with my teammates, and it appears that these context menu items are not directly exposed, and so there is no way to do this directly. With that said, you can achieve this using a CreationFilter and looking for the QuickAccessToolbarAddRemoveUIElement as well as the QuickAccessToolbarPositionUIElement and adding an ImageUIElement to the ChildElements collection of that element.
I am attaching a sample project to demonstrate the above. I hope this helps you.
Please let me know if you have any other questions or concerns on this matter.
WindowsFormsApp48.zip
your solution works great. thanks ,
i want to catch the click event for "customise the ribbon" option. can you please give solution to catch this event?
Hello Abi,
Thank you for your update on this matter.
I just wanted to confirm the piece of the ribbon that you are looking to catch the click event for? Are you referring to the small arrow to the right of the quick access toolbar in this case or perhaps something else?
Sorry Andrew,
i want to hide the "customise the ribbon" option. now done with ultraRibbonCustomizationProvider.AllowRibbonCustomization = false;
Thanks for your reply.