WPF MDI children

。_饼干妹妹 提交于 2019-12-18 06:14:14

问题


This question has been posted before, but I can't find a good answer.

I want MDI children in my WPF application. And I want those children to be fully WPF compliant.

.Net WPF doesn't have MDI children (windows within main window) any more. Some say it’s because the design is obsolete and GUI apps shouldn't be designed that way. Those people can refrain from answering this post. I know what I need. :)

What (preferably free) alternatives is there for WPF MDI? Will they work with MVVM?

EDIT: PEOPLE - don't vote up comments that say "MDI IS NOT GOOD". I specifically asked people to avoid that. I'm asking for MDI windows, not to be told not to use MDI windows.


回答1:


Here you will find what you are looking for.

EDIT: I just saw how you asked the question. So I guess you already know about it.




回答2:


I understand you don't want to hear that, but MDI basically aimed to duplicate the desktop metaphor inside the application's main window, and that was a little confusing to end users because it involved several levels of window management:

Tech: Now click on the Maximize button of the active window inside the other window you've just restored to normal size and everything should be okay.

Customer: What?

Tab-based interfaces are generally considered as a better alternative to MDI. You might want to use the TabControl class and read Josh Smith's MVVM article on MSDN Magazine, which demonstrates how to host your views in TabItems.



来源:https://stackoverflow.com/questions/4545678/wpf-mdi-children

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