Nevron Forum

Docking Panels and extra resize bars

https://www.nevron.com/Forum/Topic7294.aspx

By Jeff Proefrock - Wednesday, January 9, 2013

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 - Thursday, January 10, 2013

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 - Thursday, January 10, 2013

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 - Monday, January 14, 2013

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 - Monday, January 14, 2013

That did it.

Thank you very much!