ContextMenu for Tabs

Docking/MDI for WPF Forum

Posted 1 year ago by Andrea
Version: 20.1.0
Avatar

How can I override the ContextMenu on the tab headers? I want to have my own menuItems when a user right-clicks on the tab header. I've added the context menu to each of the elements, and it doesn't seem to make it available where I'd expect. 

            <docking:DockSite Name="m_scriptEditorDockSite" CanDocumentWindowsFloat="False"
                              CanDocumentWindowsDragToLinkedDockSites="False" KeyDown="OnKeyDown">
                <docking:Workspace>
                    <docking:TabbedMdiHost AllowDrop="False">
                        <docking:TabbedMdiContainer>
                        </docking:TabbedMdiContainer>
                    </docking:TabbedMdiHost>
                </docking:Workspace>
            </docking:DockSite>

Comments (2)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Please see this documentation topic for information on customizing any built-in menu in the DockSite.  


Actipro Software Support

Posted 1 year ago by Andrea
Avatar

Is it possible to keep the native menu but append my own custom items to it? Found it, sorry! `e.Menu.Items`

[Modified 1 year ago]

The latest build of this product (v24.1.3) was released 28 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.