How to add docked (not document) items to use full space of docking manager

Hi,

I'm adding content Controls to my docking manager using code behind and setting.

DockingManager.SetState(control, DockState.Dock);

                DockingManager.SetDockToFill(control, true);


I wanted the SetDockToFill to fill all the space in the Docking Manager, however. it always leaves some empty space. How can I get it so all space in the docking manager is filled?


4 Replies 1 reply marked as answer

BA BagavathiPerumal Apranandham Syncfusion Team May 31, 2023 02:31 PM UTC

Hi Lorenzo,



We suggest you to set DockFill property of DockingManager as true to arrange the dock windows to a whole available space in the DockingManager. Please refer to the attached sample and documentation link for your reference.


Documentation link: Dealing with Windows in WPF Docking control | Syncfusion




Regards,

Bagavathi Perumal A


Attachment: DockingManager(WPF)_14fc2088.zip

Marked as answer

LO Lorenzo May 31, 2023 02:43 PM UTC

Perfect thank you



SF Steve Fotso replied to BagavathiPerumal Apranandham October 24, 2024 07:08 PM UTC

Is it possible for the docking manager to split the space evenly amongst all children when docking happens? 



SS Sekar Sivalingam Syncfusion Team October 28, 2024 02:09 PM UTC

Hi Carles Steve,

Thank you for your question regarding the docking manager. Currently, when an item is docked, the size of the dragged item is adjusted to match the targeted element. As a result, we cannot ensure that the space for all items is distributed evenly during the docking process. If you have any further questions or need assistance, please let us know!

Regards,
Sekar Sivalingam


Loader.
Up arrow icon