Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
9843 | Jan 13,2004 09:03 PM UTC | Mar 26,2021 12:11 PM UTC | WinForms | 10 |
![]() |
Tags: Tools |
'Docking control with DockingStyle.Fill to DockingManager's host control not allowed.'
It is no possible to make a docked panel automatically fill the available space, there is always a gap. In Visual Studio there is no gap. Please see the image below. The center panel fills the space and continues to fill the space when resizing there is no gap. |
You can achieve your requirement “Docking windows without any gap” by set DockingManager’s property DockToFill as true. Please find the code snippet and sample for the same.
Note: If you enable document mode, Document container will occupy the available empty space. | |
But if you try to dock using "Fill" you get this error.
'Docking control with DockingStyle.Fill to DockingManager's host control not allowed.'
|
Currently we have marked DockStyle.Fill type as obsolete and it is unusable. We will consider the use case of this type and try to make it usable in future.
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.