DockFill when Dock closed

I have Dockfill set to true otherwise there is an extra gap between my docks. When I close one dock, the rest of the docks fill the area. How can I get the docks to stay in their position when another dock is closed and still have Dockfill to true?

1 Reply

DR Durga Rajan Syncfusion Team March 29, 2018 09:17 AM UTC

Hi Caleb Kliewer, 

Thanks for contacting Syncfusion support. 

We have checked your query “Maintaining same size for Dockwindow while closing other windows when the property DockFill is true” in DockingManager. By default implementation of DockingManager, the DockFill property allows the each child of DockingManager to occupy the space equally in DockingManager. If we close the DockWindow, count of the visible child element will be changed so arrangement will happen in DockingManager and the DockingManager arrange the existing element in the available space. So we cannot maintain same size of the Dockwindow while closing other windows. Your requirement can be achieved by disabling DockFill property of DockingManager but the extra gap between DockWindows will happen. If we add any control as ClientControl in DockingManager, that child will be occupy the gap between the DockWindows or if any of the child control is in Document state in DockingManager, extra gap between dock windows will not occur. Please find the below screenshots and sample for the same, 

Screenshots: 

Any of the Dock Child  is in Document state 

 

Adding Client control in the DockingManager 

 

Please download the sample for the same, 


Please let us know in case of any concern on this. 

Regards, 
Durga S. 


Loader.
Up arrow icon