How to allow only toolwindow container to move/dock

Docking/MDI for WPF Forum

Posted 11 years ago by Piyush Parsai
Version: 12.2.0573
Avatar

Hi,

We have one requirement where we have a ToolWindowContainer having 3 tool windows. Our requirement is that we do not want to allow ToolWindow's to be draged/moved - we only want to allow the whole container to moved and docked - not the individual TollWindow's.

And, also would like to apply properties like (CanAttach="False" CanDrag="True" HasOptions="True" CanClose="True" CanAutoHide="True" "CanBecomeDocument="False" CanDockLeft="False" CanDockTop="False" CanDockRight="True" CanDockBottom="False") to the ToolWindowContainer.

Please let know - how to achieve this. Our current xaml looks like following - which we need to modify for our requirement - please let know your inputs on this.

<docking:ToolWindowContainer x:Name="rightTreeContainer" docking:DockSite.ControlSize="75,75">
<docking:ToolWindow x:Name="tree1" Title="Tree1"
CanAttach="False" CanDrag="True" HasOptions="True" CanClose="True" CanAutoHide="True"
CanBecomeDocument="False"
CanDockLeft="False" CanDockTop="False" CanDockRight="True" CanDockBottom="False">
</docking:ToolWindow>
<docking:ToolWindow x:Name="tree2" Title="Tree2"
CanAttach="False" CanDrag="True" HasOptions="True" CanClose="True" CanAutoHide="True"
CanBecomeDocument="False"
CanDockLeft="False" CanDockTop="False" CanDockRight="True" CanDockBottom="False">
</docking:ToolWindow>
<docking:ToolWindow x:Name="tree3" Title="Tree3"
CanAttach="False" CanDrag="True" HasOptions="True" CanClose="True" CanAutoHide="True"
CanBecomeDocument="False"
CanDockLeft="False" CanDockTop="False" CanDockRight="True" CanDockBottom="False">
</docking:ToolWindow>
</docking:ToolWindowContainer>

 

Thanks,

Piyush

Comments (3)

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

Hi Piyush,

While our product does have global and instance level properties for determining whether tool windows can be dragged, unfortunately those will prevent dragging from any location.  There isn't anything to say it only applies to tabs vs. a container.  So sorry, but that feature isn't available.


Actipro Software Support

Posted 11 years ago by Piyush Parsai
Avatar

Hi,

Can you suggeest any other alternative to achieve this.

Thanks,

Piyush

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

Sorry but unfortunately there isn't any combination of features or workaround for this request.


Actipro Software Support

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