简体   繁体   中英

Equivalent of Java's BorderLayout

Is there any? If not, what do you suggest? Right now we are using a plethora of split containers, and the way it's coded makes it very difficult to add new controls, especially in the same panels, resizing is hopeless amongst other things. It could be recoded again using split containers in a much better way, but is there a better alternative?

在此处输入图片说明

Image courtesy of Sun's " A Visual Guide to Layout Managers ".

It sounds like you want a DockPanel .

Here's the demonstration image:
(source: microsoft.com )

which bears striking similarity to yours.

In WinForms, you just use the pre-existing Dock property (see also Anchor ), as described here: http://www.techrepublic.com/article/manage-winform-controls-using-the-anchor-and-dock-properties/6165908

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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