MDI容器内的MDI容器 [英] MDI container within a MDI conainer

查看:107
本文介绍了MDI容器内的MDI容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将MDI容器放在MDI容器中?容器2将是容器1的孩子。



我正在制作卡路里/食品应用程序并需要弹出多个表格,例如我有一个闪屏加载导致欢迎和登录页面从那里我打开一个mdi容器。在容器中我希望能够加载表单,因此输入详细信息,然后返回容器并加载新子容器是否可以将容器放在容器内的容器中?



提前感谢



Dan

is it possible to put an MDI container within an MDI container? so Container 2 would be a child of container 1.

I am making a calorie/food application and need multiple forms popping up, for example I have a splash screen on load which leads to a "Welcome and login" page from there I open a mdi container. Within the container I want to be able to load a form, so enter details, then instead of going back to the container and loading a new child is it possible to have container within container within container?

thanks in advance

Dan

推荐答案

不好主意,真的很糟糕!我不认为这是可能的,我不会建议你使用MDI;这种风格非常不鼓励(首先,我的微软推出了MDI)。



参见:

在WPF中使用MDI窗口的问题 [ ^ ],

MDIContainer提供错误 [ ^ ]。





回答后续问题:



请在我过去的答案中查看我的设计建议:

GUI Apperance - C#.Net [ ^ ]。



-SA
Bad idea, really bad! I don't think it's possible and I would not recommend you using MDI at all; this style is highly discourages (first of all, my Microsoft where MDI was introduced).

See also:
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].


Answering the follow-up question:

Please see my design recommendation in my past answer:
GUI Apperance - C#.Net[^].

—SA


首先,这是一个坏主意。其次,MDI模型不支持它。 MdiChild也不能同时成为MdiParent。



MDI模型(多文档界面)设置为每个MdiChild子项具有相同的文档编辑器类型。它不适用于托管各种形式的表格。根据您的描述,您根本不是在谈论MDI应用程序。
First, it's a bad idea. Second, the MDI model doesn't support it. A MdiChild cannot also be an MdiParent at the same time.

The MDI model (Multiple Document Interface) was setup to have the same document editor type for each MdiChild child. It is not meant for hosting all kinds of disparet forms. From your description, you're not really talking about an MDI application at all.


MDI Parent也不可能成为MDI Child。



如果你想做这样的事情,你根本就不应该使用MDI。
It's not possible for a MDI Parent to also be a MDI Child.

If you're thinking of doing something like this, you really shouldn't be using MDI at all.


这篇关于MDI容器内的MDI容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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