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
3045
Can you add menu items to the Pane's dropdown menu button?
posted

When using ShowMenuButton of UltraDockManager, I would like add more buttons to it. It is possible to modify the dropdown menu button items?

 

Thanks,

  • 5118
    posted

    Hi,

    I apologize for the delay in answering your request.

    From what I've seen we cannot manipulate that menu structure directly but we can show our own instead.  Handle the BeforePaneButtonClick event of the DockManager.  If the button is the PaneButton.Menu then set e.Cancel = true and then show your own.  Something like ultraPopupControlContainer.Show(new Point(mouse.x, mouse.y) <find the mouse position or use the position of the menu pane button to show it by the menu button.  Set the UltraPopupControlContainer.Control property to a control to show... maybe a MenuStrip or something similar.