How to restrict 'Move To New HorizontalContainer'

Docking/MDI for WPF Forum

Posted 10 years ago by jay - dx
Avatar
I'm testing some feature of docking control.
My concern is some feature of frozen tab document.
I mean, toolwindows(or documentwindow) can not draged or moved other in the docksite.
Toolwindow control serves some property for this feature.
But 'CanMoveToNewHorizontalContainer' is readonly property. So end user can move the toolwindow another tab group.
Can I restirct it? or any good idea?

[Modified at 05/17/2009 08:18 PM]

Comments (2)

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

So if I understand correctly you just want to prevent the window from being dragged, right? You could set TabbedMdiHost.CanDocumentsDrag to false and then also probably handle the DockSite.WindowContextMenu event and look for context menus on document windows. When those are found, remove the default move to new container options. Does that help?


Actipro Software Support

Posted 10 years ago by jay - dx
Avatar
It is really helpful :)
The latest build of this product (v2018.1 build 0675) 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.