简体   繁体   English

WPF,Windows Form中的任何自动可扩展/可折叠控件

[英]Any automatically expandable/collapsable control in WPF, windows Form

in Visual Studio, when you hover mouse to solution explorer window, it will expand automatically. 在Visual Studio中,将鼠标悬停在解决方案资源管理器窗口时,它将自动展开。 If you move mouse away, the window collapse automatically. 如果将鼠标移开,窗口将自动折叠。 Also the window has a pin so you can pin it. 另外,窗口上有别针,因此您可以将其固定。 I wonder if there is such control available in WPF or Windows Form or open source? 我想知道WPF或Windows Form或开源中是否有这样的控件? I want to have such thing in my projects. 我想在我的项目中有这样的东西。 thanks 谢谢

For Winforms you'll want to take a look at the dockpanelsuite project over at github. 对于Winforms,您需要查看github上的dockpanelsuite项目 It features exactly what you're looking for and indeed the authors cite the Visual Studio docking controls as their inspiration. 它恰好具有您要查找的内容,确实,作者引用了Visual Studio停靠控件作为灵感。

I used an early version of the project (from codeproject.com ) and had no problems with it but the current github project appears to be actively maintained. 我使用了该项目的早期版本(来自codeproject.com ),并且没有任何问题,但是当前的github项目似乎正在积极维护中。

For WPF you'll want to check this out this thread in SO. 对于WPF,您需要在SO中检查该线程 Among the open source recommendations there is AvalonDock , which I personally don't have experience with. 在开放源代码推荐中有AvalonDock ,我个人没有经验。 There are a few commericial solutions there as well. 那里也有一些商业解决方案。

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

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