How to implement mdi in a WPF application

放肆的年华 提交于 2019-11-29 09:22:36

There are two popular projects on CodePlex that might help you:

  • AvalonDock - a docking library in the style of Visual Studio, and
  • WpfMdi which is a classic MDI window manager.

AvalonDock supports separate tab-sets side-by-side and also tear-off windows like Visual Studio, so it should give you everything you need, though not exactly classical MDI. It is used in SharpDevelop, so you could download that to play around and get an idea of how the docking library can be used.

Edit:

And I found a third one which looks very snazzy: Chronos WPF.

From some reason, Microsoft decided that MDI is wrong. There is a lot of information about this when searching it in Google.

I believe that it is wrong to kill something that so many people liked and in forums I visited, some people point to a new Microsoft example that works in MDI to stress the point that it is legit way to build an application.

I hate swimming against the stream, so I quit as soon as I understood that despite it is possible to create an MDI application with modern Microsoft application such as silverlight, wpf and maybe even windows-phone, microsoft really discorage it and doesn't offer any support (as far as I know).

Hope it helps to others that wonders what happened to our good old MDI "Father".

I don't think their is a built in way to do this. However you may want to look at buying a set of user controls from someone such as DevExpress, Component One, Infragisitcs, Telerik... I would think most of them will have a similar control to how VS2010 works. I know DevExpress does.

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