可停靠的形式 [英] Dockable Form
本文介绍了可停靠的形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何创建类似于Visual Studio中Windows的可停靠"表单?
How do you create a "dockable" form, similar to the windows in Visual Studio?
推荐答案
winforms中的任何自定义控件(复合的,不是继承的)都可以停靠,因为它实际上只是下面的面板.将其与表格布局面板结合使用,可进行表单的高级布局,您便拥有了所有的内容.但是您仍然必须自己实现所有粘合和支持UI.
Any custom control (composite, not inherited) in winforms can be docked, because it's really just a panel underneath. Combine this with a tablelayout panel for the high-level layout of your form and you have all the pieces. But you still have to implement all the glue and supporting UI yourself.
这篇关于可停靠的形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文