为什么紧凑框架中不支持MDI? [英] Why is there no support for MDI in Compact-Framework?

查看:51
本文介绍了为什么紧凑框架中不支持MDI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近想要/认为我需要一个带有两个子表单的表单,以便根据用户对 TreeNode 的选择在它们之间进行切换.

I recently wanted/thought I need a form with two child forms to switch between according to user's selection of a TreeNode.

在搜索网络时,我发现

While searching the web I found this post saying this need is a flaw in my design. Why?

为什么多个对话框对CF不利?我的使用场景不需要吗?

Why are multiple dialogs bad for the CF? Doesn't my usage scenario require this?

如果有支持并且可以使用它,您能指出我吗?

If there is support and it is OK to use this, can you point me to it?

谢谢.

推荐答案

CF不支持它,因为

The CF doesn't support it because the OS itself doesn't support MDI (see the Remarks section in the linked page).

通过使用UserControls而不是Forms并将它们扔到"MDI Parent"表单上的Frame之类的容器中,可以很容易地伪造MDI.

MDI can be pretty easily faked, though, by using UserControls instead of Forms and throwing them in a container like a Frame on your "MDI Parent" Form.

您还可以使用Tab Control主题,每个文档"都将成为一个Tab.

You could also go with a Tab Control motif, and each "document" becomes a tab.

这篇关于为什么紧凑框架中不支持MDI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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