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?