如何制作wpf应用程序,我们通过Menues在一个MDI表单上调用多个表单? [英] how to make wpf application in which we call multiple form on one MDI form through Menues ?

查看:80
本文介绍了如何制作wpf应用程序,我们通过Menues在一个MDI表单上调用多个表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过Menues

解决方案

在一个MDI表单上调用多个表单的wpf应用程序在WPF中,没有MDI这样的东西。这非常好。微软认识到MDI架构非常糟糕,并且努力逐步淘汰它;他们不敢从 System.Windows.Forms 中取出MDI,但他们是用WPF做的,这是一个从根本上打破与旧的不太好的Windows的关系的API API。



而不是MDI,我可以建议许多不同的设计选项,最简单的可能是使用 TabControl 。对于其他一些想法,请参阅我过去的答案:

如何在WPF中创建MDI父窗口?

关于在WPF中使用MDI窗口的问题

MDIContainer给出错误

如何设置最大化的子表单,最小化最后一个子表单



-SA

how to make wpf application in which we call multiple form on one MDI form through Menues

解决方案

In WPF, there is no such thing as MDI. And this is very good. Microsoft recognized that MDI architecture was quite bad and tried hard to phase it out; they did not dare to take out MDI from System.Windows.Forms, but their did it with WPF which is the API radically breaking the relationship with old not-so-good Windows API.

Instead of MDI, I can advise many different design options, and the simplest might be the use of TabControl. For some other ideas, please see my past answers:
How to Create MDI Parent Window in WPF?,
Question on using MDI windows in WPF,
MDIContainer giving error,
How to set child forms maximized, last childform minimized.

—SA


这篇关于如何制作wpf应用程序,我们通过Menues在一个MDI表单上调用多个表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆