docksite contextmenu

Docking/MDI for WPF Forum

Posted 11 years ago by Arthur Damen
Version: 12.2.0573
Avatar

Hi

I want to add the available Tab documentwindows manually by the contextmenu event.

When i try to do this as described at the bottom, i get an error saying that i try to add a visual which is already connected. (that is true).

Is there  a way to make a quick contextmenu with all the Tab items in the docksite to goto one of them?

 

 

PrivateSub MainDockSite_WindowContextMenu(sender As System.Object, e As ActiproSoftware.Windows.Controls.Docking.DockingWindowContextMenuEventArgs)

Try

e.ContextMenu.Items.Clear()

For Each Win As DocumentWindow In MainDockSite.DocumentWindows

e.ContextMenu.Items.Add(......)

Next

Comments (1)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Arthur,

Sorry we don't have any methods exposed to do that.

But you could make a new MenuItem that has the text of each document window's title in it, and use that result in your Add method call.


Actipro Software Support

The latest build of this product (v24.1.1) 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.