Actually, I think I would prefer to simply extend the existing SplitContainer control for winforms.
What I would love is to add my own SplitContainer from the toolbox, and then add as man开发者_JS百科y more panels to it as needed. And remove as needed.
Something like this:
How would one begin extending the SplitContainer?
why don't you just use Panelcontrols with Dockstyle and Splittercontrols?
if you realy want to write your own Splittcontainer you have to write the Control itself, the ParentControlDesigner and a DesignerActionList.
Is it legal to answer old question?
What I'm suggesting is using TableLayoutPanel since it can be added more column and rows as per needed. And you can add panel and set properties of the item inside the layout to dock fill.
Edit column with percent, autosize based from content size or absolute fixed pixel
Click on tiny arrow on TableLayoutPanel to open the layout configuration
Normal windows
Maximized windows
精彩评论