Docking Panels and extra resize bars


https://www.nevron.com/Forum/Topic7294.aspx
Print Topic | Close Window

By Jeff Proefrock - 11 Years Ago
All,
I am using Docking Panels as seen in the attached image. My problem is there is an extra resize bar on the panel that is docked to the bottom. It's circled in red on the image. Visually, I don't really care, but you can drag that bar up and create a blank space below the "Output" panel.

Anyone have any suggestions?

Thanks,
Jeff
By Nevron Support - 11 Years Ago
Hi Jeff,

Could you post the code that is related to the docking framework?
From the image is not getting clear where this resize bar comes from.
By Jeff Proefrock - 11 Years Ago
Here is the relevant code that will reproduce the issue:

NDockingPanel pnlMain = new NDockingPanel();
pnlMain.Text = "Main";
pnlMain.PerformDock(_nDockManager.RootContainer.RootZone, DockStyle.Top);

NDockingPanel pnlOutput = new NDockingPanel();
pnlOutput.Text = "Output";
pnlOutput.PerformDock(pnlMain.ParentZone, DockStyle.Bottom);

for (int i = 1; i <= 3; i++)
{
NDockingPanel pnlSub = new NDockingPanel();
pnlSub.Text = string.Format("Sub {0}", i);
pnlSub.PerformDock(pnlMain.ParentZone, DockStyle.Fill);
}


I've also attached a small sample project that illustrates the issue.
By Nevron Support - 11 Years Ago
Hello Jeff,

Thanks for the example project.

This resize bar is displayed to separate the docking panels and the area where you can add a documents in their view.
To set the NDockManager to disable the ability to show documents you need to do the following:

_nDockManager.DocumentStyle.DocumentViewEnabled = false;
By Jeff Proefrock - 11 Years Ago
That did it.

Thank you very much!