ContextMenu override document window tabs when using MVVM

Docking/MDI for WPF Forum

Posted 10 years ago by Scott Currie
Version: 14.1.0601

I can't seem to figure out which object in the visual tree actually holds onto the context menu that is presented when you right click on a document window tab.  Could you point me in the right direction so that I can override it and add some of my own functionality?

Comments (2)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Scott,

Are you just trying to alter context menu items for when right clicking on a document window tab?  If so, you should handle the DockSite.WindowContextMenu event.  That is called right before the context menu is displayed and the target window is passed in e.Window.  You can alter the menu in a handler of that event before it shows.

Actipro Software Support

Posted 10 years ago by Scott Currie

Thanks.  I since realized that I missed the conceptual documentation topic on this.  Apologies for the unnecessary question.

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.