Disable the center docked icon of the dockguide for toolwindows in same docksite.

Docking/MDI for WPF Forum

Posted 7 years ago by keshav bansal
Version: 12.1.0562
Avatar

Hi,

How to disable the center docked icon of the dockguide ?

Is there any functionality like CanDockCenter for the docksite to restrict the toolwindow to be docked at the center of the another toolwindow in that docksite.

ForExample:

If there is one docksite named docksite that consist of two toolwindows named toolwindow1 and toolwindow2.

So toolwindow1 can be docked at the center of the toolwindow ,in that case two tabs will be formed.So How to restrict that functionality..?

ForExample

<docking:DockSite>

<docking:SplitContainer Orientation="Horizontal">

<docking:ToolWindowContainer>

<docking:ToolWindow x:Name="tw1">

</docking:ToolWindow></docking:ToolWindowContainer>

<docking:ToolWindowContainer><docking:ToolWindow x:Name="tw2">

</docking:ToolWindow></docking:ToolWindowContainer>

</docking:SplitContainer>

</docking:DockSite>

In the above example tw1 should not be docked at the center of the tw2 or vice versa.

Comments (2)

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

Hi Keshav,

Docking a window in the center like you describe is called attaching. There is a DockingWindow.CanAttach property you can set to false on your windows to prevent them from being docked together.


Actipro Software Support

Posted 7 years ago by keshav bansal
Avatar

Hi,

Thanks .

Its working

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.