Bug Report T221724
Visible to All Users

DXRibbonWindow doesn't close its custom context menu on opening a default window menu

created 10 years ago

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.

Comments (3)
Andrey K (DevExpress Support) 10 years ago

    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.

      Andrey K (DevExpress Support) 10 years ago

        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

        Answers approved by DevExpress Support

        created 9 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.