Articles in this section
Category / Section

How to restrict the specific dockability of child window to client area in DockingManager?

1 min read

User can restrict the specific DockAbility of child window when it moved to the client area in DockingManager. It can be achieved by SetOuterDockAbility method. Here we have restricted the tabbed/fill dockability.

 

The following code demonstrates the same.

 

C#

//Restrict Tabbed/Fill DockAbility
foreach(var child in dockingManager1.ControlsArray)
{
dockingManager1.SetOuterDockAbility(child, Syncfusion.Windows.Forms.Tools.DockAbility.Top| Syncfusion.Windows.Forms.Tools.DockAbility.Bottom| Syncfusion.Windows.Forms.Tools.DockAbility.Left| Syncfusion.Windows.Forms.Tools.DockAbility.Right);
}

 

VB

'Restrict Tabbed/Fill DockAbility
For Each child In dockingManager1.ControlsArray
dockingManager1.SetOuterDockAbility(child, Syncfusion.Windows.Forms.Tools.DockAbility.Top Or Syncfusion.Windows.Forms.Tools.DockAbility.Bottom Or Syncfusion.Windows.Forms.Tools.DockAbility.Left Or Syncfusion.Windows.Forms.Tools.DockAbility.Right)
Next child

 

Screenshot

 

Showing restriction of tabbed/fill dockability

Figure 1: Restriction of Tabbed/Fill DockAbility.

 

Samples:

 

C#: DockingManagerSample

 

VB: DockingManagerSample

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied