简体   繁体   English

如何在DockPanelSuite中的面板之间隐藏文档区域

[英]How to hide document area between panels in DockPanelSuite

I am trying to develop an interface using DockPanelSuite with only a left and right window (I want them to look the same). 我正在尝试使用DockPanelSuite开发一个仅具有左右窗口的界面(我希望它们看起来相同)。 When using DockPanelSuite you cannot set the width of the document area and there is a gap between the panels (see the green area in image below). 使用DockPanelSuite时,您无法设置文档区域的宽度,并且面板之间存在间隙(请参见下图的绿色区域)。 Does anyone know how to hide or remove the document are for DockPanel Suite? 有谁知道如何隐藏或删除DockPanel Suite文档? Below is the code I use to show the panels. 下面是我用来显示面板的代码。

dockPanel.DockRightPortion = .75;
dockPanel.DockLeftPortion = .25;
_libraryBrowser.Show(dockPanel, DockState.DockLeft);
_pageDisplay.Show(dockPanel, DockState.DockRight);

表格之间的差距

I also encountered a similar issue a long time ago, the only way I found to solve it is to change how the bigger panel is shown. 我很久以前也遇到过类似的问题,我发现解决此问题的唯一方法是更改​​更大面板的显示方式。 In your case: 在您的情况下:

_libraryBrowser.Show(dockPanel, DockState.Document);
_pageDisplay.Show(dockPanel, DockState.DockRight);

I know that probably is not what you expect to do, but is a way to solve the issue. 我知道这可能不是您期望的,但这是解决问题的一种方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM