Docked restriction for the toolwindow inside other toolwindow.

Docking/MDI for WPF Forum

Posted 6 years ago by keshav bansal
Version: 12.2.0572
Avatar

Hi,

How to restrict to dock the toolwindow inside the other toolwindow of the same docksite ?

ForExample:

I have docksite named Docksite1 and it have 3 toolwindows named toolwindow1 and toolwindow2 and toolwindow3 respectively.

my toolwindow1 should be docked in the toolwindow2 but not in toolwindow3.

Comments (3)

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

Hi Keshav,

Sorry but we don't support code-based selective prevention of dock targets such as that.  You can prevent attaching as a whole, either DockSite-wide or on tool window-specific basis.  Perhaps setting toolWindow3.CanAttach to false will help you for your scenario.


Actipro Software Support

Posted 6 years ago by keshav bansal
Avatar

Hi,

But its not working when i am settimg the CanAttach to false for the toolWindow3.

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

Sorry but I'm not seeing that.  At least in our latest versions, if I open the demo, pin Tool Window Options tool window to a Docked state, and set its CanAttach property to false, I'm not able to drag other tool windows to attach to it.


Actipro Software Support

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.