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
275
Programmatically change DocumentFilesMenuItem
posted

I want to add additional menu items to the DocumentFilesMenuItem e.g. add menu item for adding new tabs, showing all hidden tabs etc. 

How can i achieve this?

  • 54937
    Suggested Answer
    Offline posted

    Currently there is no event or public means to manipulate this list. The default template for the TabGroupPane contains a menu item (named PART_FilesMenuItem). When the menu item is opened, the tabgrouppane clears it and adds in a menuitem for each visible pane. You should submit a suggestion for adding an event for this menu similar to how the ContentPane raises an event for its options menu. For now, you would probably need to retemplate the tabgrouppane, not include that PART_FilesMenuItem and instead add in your own custom control or menu and populate it as required.