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
665
Replace Context Menu
posted

Hi there,

i just want to know if there is a possibility to replace the standard Context Menu of Controls?

Because I´m using the ultratoolbarsmanager and i want to set my own Context Menu to it. I´m using the SetContextMenuUltra-Function to add my ContextMenu to the Ultratoolbarsmanager but this do not replace the standard context menu, it just shows both, the standard and my contextmenu.

Better would be to set the context menu of a ribbon group but i didn´t find something in this way.

Would you please help me?

regards

Cloud

Parents
No Data
Reply
  • 71886
    Verified Answer
    Offline posted

    Hello Cloud,

    You could try the following code in order to not show the default context menu:

            private void ultraToolbarsManager1_BeforeToolbarListDropdown(object sender, Infragistics.Win.UltraWinToolbars.BeforeToolbarListDropdownEventArgs e)
            {
                e.Cancel = true;
            }
    

    Please feel free to let me know if I misunderstood you or if you have any other questions.

Children