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
1405
Disable contextmenu for ContentPane
posted

Hy all.

I have a XamDockManager with a TabGroupPane in which I add in code ContentPanes. For this ContentPanes I would like to disable the contextmenu (it has Floating, Dockable, Tabbed Document, Auto hide and Hide) that appears when you right click on the tab.

I know there for Floating there is AllowFloatingOnly property and for Dockable there is AllowDocking, but for the others? Is there a way to disable it completely? For me it's important to disable the Hide, is it possible?

Thanks very much.

Nico

Parents
No Data
Reply
  • 54937
    Offline posted

    You have a couple of options. As you noticed, you can use the properties to remove some of the items - e.g. AllowClose will be used to determine if the Hide/Close option will be included. You could also handle the PaneOptionsMenuOpening event and clear the items of the event args.

Children