Current filter:
                                You should refresh the page.
                                  • is it possible to add a right click popup menu to a HamburgerSubMenuNavigationButton?
                                    i would like to allow the user to remove a submenu button but right clicking on the button and selecting the delete command,...

                                1 Solution

                                Creation Date Importance Sort by


                                To assign a context menu to a HamburgerSubMenuNavigationButton in your HamburgerMenu, use the DXContextMenu attached property. For example, as follows:

                                <dxwui:HamburgerSubMenuNavigationButton Content="MenuSubItem 3"> <dxb:BarManager.DXContextMenu> <dxb:PopupMenu> <dxb:BarButtonItem Content="Test"/> </dxb:PopupMenu> </dxb:BarManager.DXContextMenu> </dxwui:HamburgerSubMenuNavigationButton>

                                Should you have additional questions, don't hesitate to contact me.


                                • Dan Noe 09.18.2019

                                  thank you, but i'm actually creating the button in code...
                                  HamburgerSubMenuNavigationButton button = new HamburgerSubMenuNavigationButton()
                                   do you have a code snippet for adding a menu to a button done in code?

                                • Michael Ch (DevExpress Support) 09.19.2019

                                  Dan, the DXContextMenu property is a regular attached property so you can use common programming approaches to specify its value in XAML or C# as described in the Attached Properties Overview topic.

                                  Also I made a quick search in our Support Center and found the following ticket - Help with context menu using these key words: "DXContextMenu in code". It may be helpful to you.

                                  Please take a moment to review the links I provided and let me know if you have additional questions.