I've assigned a DevExpress PopupMenu to a RibbonControl via the BarManager.DXContextMenu attached property. When I right-click on the title bar of the DXRibbonWindow I get the default window context menu (with Restore, Move, Size etc. in it) instead of my custom menu. If I close that menu and right-click again, the default menu appears again. However, if I right-click while the default menu is open, the default menu closes and my custom menu opens.
That might sound confusing, so to put it another way, the custom menu only appears when right-clicking the title bar while the default context menu is open.
Is there any way to stop the default menu from appearing when I right-click the title bar, so that my custom menu always appears?
Note that I need to make sure that the application icon (at the very top left of the window) and all of the minimise, maximise, restore , and close buttons are still available. The main aim here is to make sure my context menu always appears when right clicking on a ribbon category (which is overlaying the title bar). It is less important (but preferable) that the custom menu appears when right-clicking a blank area on the title bar. Also note that I use the same custom context menu when right clicking any component on the ribbon control.
Hello,
I have tried to replicate this behavior in a sample project, but did not succeed. Attached is a project that illustrates my attempts to reproduce your scenario and the issue you are experiencing.
Please modify this project so that it illustrates the problematic behavior and send it to us.
Thanks,
Andrey
Change the Window in the sample project to a DXRibbonWindow and it will display the issue I described.
Thanks. We have successfully reproduced the behavior you described and passed this ticket to our developers for further research. Please bear with us. We will notify you as soon as we make any progress.
Thanks,
Andrey