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
90
how to provide icon image for ribbon context menu
posted

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?

Parents
No Data
Reply
  • 34810
    Offline posted

    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

Children