ContextMenu override document window tabs when using MVVM

Docking/MDI for WPF Forum

Posted 5 years ago by Scott Currie
Version: 14.1.0601
Avatar

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 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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 5 years ago by Scott Currie
Avatar

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

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.