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
Figure 1: Restriction of Tabbed/Fill DockAbility.
Samples:
C#: DockingManagerSample
VB: DockingManagerSample