如何在WPF中设置MDI父窗体? [英] How to set MDI Parent form in WPF?
本文介绍了如何在WPF中设置MDI父窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在WPF中设置MDI父窗体和子窗体?请给我一些示例..
How to set the MDI Parent form and Child form in WPF? Please give me some examples..
推荐答案
http://wpfmdi.codeplex.com / [^ ]
WPF中没有Form的概念,并且最终不支持MDI(Prerak引用的解决方案仅是模仿;希望它不像原始解决方案那样糟糕).太好了!但是,这样的问题破坏了画面.
如果您想帮自己一个大忙,请不要使用MDI.
请参见 http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [在WPF中使用MDI窗口的问题 [ ^ ],
提供错误的MDIContainer [
There is not a concept of Form in WPF, and MDI — finally — is not supported (the solution Prerak referenced is only imitation; hopefully, not as bad as the original). What a relieve! However, the questions like this one spoils the picture.
If you want to do yourself a big favor, never use MDI.
See http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^];
see also my past solutions where I explain why and recommend what to do instead:
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].
Good luck,
—SA
这篇关于如何在WPF中设置MDI父窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文