docking control similar to visual studio

两盒软妹~` 提交于 2019-12-03 17:19:55

For WPF, I can recommend AvalonDock. It's also used by SharpDevelop:

http://avalondock.codeplex.com/

I was able to make it work With the Free Weifen-Luo's Docking Library.

you can simply add your dock panel to a user control or a tab control or any other type of container.

Controls.Add(dockPanel);

The one thing that was missing was that in order to use the DockStyle.Document you must have the following line of code:

dockPanel.DocumentStyle = DocumentStyle.DockingWindow;

This allows DockStyle.Document to be used with something other then an MDI interface.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!