的WinForms:如何使一个可折叠的UI区域的形式,如Visual Studio的工具箱? [英] WinForms: How do I make a collapsible UI region on the form, like Visual Studio's toolbox?

查看:166
本文介绍了的WinForms:如何使一个可折叠的UI区域的形式,如Visual Studio的工具箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想补充一个折叠/展开功能到Windows窗体。

I want to add a collapse/expand capability to a Windows Form.

这是建在分线器的控制?是否有一个教程此UI技术?

Is this built into the splitter control? Is there a tutorial for this UI technique?

最直接的项目,我想的是一个简单的用户界面,Windows窗体。它有3个板,一层取向在顶部,一个在中间,一个在底部。我希望能够彻底崩溃的中间面板,但还没有妥善保存以备扩展。

The immediate project I'm thinking of is a simple UI, Windows Forms. It has 3 panels, one oriented at the top, one in the middle and one at the bottom. I want to be able to collapse the middle panel completely, but yet keep it available for expansion.


我看到了SO问题,
寻找一个Visual Studio工具箱式的导航桌面应用

I saw the SO question,
Looking for a Visual Studio toolbox style navigation for desktop applications

......,而更多的是带拖动部件工具箱。我不关心拖动能力。我要的是一个可折叠的窗体区域,顺便工具箱和VS等元素都是可折叠的,IE8的收藏夹面板pinnable或可折叠的方式。

..and that's more about a toolbox with draggable components. I don't care about the draggable capability. What I want is a collapsible form region, the way the toolbox and other elements in VS are collapsible, the way the IE8 favorites panel is pinnable or collapsible.

推荐答案

使用的 System.Windows.Forms.SplitContainer

在SplitContainer的面板,您可以使用FlowLayoutPanel的或自定义的工具箱里

inside the SplitContainer panel you can use a FlowLayoutPanel or a custom toolbox

这篇关于的WinForms:如何使一个可折叠的UI区域的形式,如Visual Studio的工具箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆