如何在另一个窗框内打开窗口 [英] how to open window inside another window frame

查看:118
本文介绍了如何在另一个窗框内打开窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在另一个窗口框架内打开窗口。我有一个窗口由框架组成我想在框架中打开另一个窗口是否有可能?举个例子。

解决方案

您的表格(窗口)必须是MDI(多文档界面)



 YourForm.IsMdiContainer = True 

NewForm.MdiParent = YourForm;
NewForm.Show();


1。阅读所有关于MDI的信息,请访问 http:// msdn。 microsoft.com/EN-US/library/xyhh2e7e(v=VS.100,d=hv.2).aspx



2.使用Google或Bing搜索以查找MDI样本以供学习和学习。

以下是一个例子的链接,我发现搜索键: mdi sample vb.net

www.cas.mcmaster.ca/~se4d03/tutorials/MDIExmpl.pdf



3.开发一个小样本应用程序来帮助您学习。



4.通过发布示例应用程序中的代码来进一步澄清问题。

不要这样做。 WPF Windows不是那样设计的,谢天谢地。你需要先考虑好的UI设计。



有很好的选择。一个非常简单但非常好的是 System.Windows.Controls.TabControl http://msdn.microsoft.com/en-us/library/system.windows.controls.tabcontrol.aspx [ ^ ]。



还有很多其他的。基本上,您可以在窗口中放置多个面板。隐藏/显示它们,移入/移出,最小化/最大化等等。



您甚至可以在Visual Studio中使用高级停靠接口行:http://avalondock.codeplex.com/ [ ^ ]。



-SA


how to open window inside another window frame.i am having a window consist of frame i want to open another window in the frame is it possible or not?give some example.

解决方案

Your Form(Window) must be MDI(multiple document interface)

YourForm.IsMdiContainer = True

NewForm.MdiParent = YourForm;
NewForm.Show();


1. Read all about MDI at http://msdn.microsoft.com/EN-US/library/xyhh2e7e(v=VS.100,d=hv.2).aspx

2. Use Google or Bing search to find samples of MDI to study and learn from.
Following is a link to one example, I found with search key: mdi sample vb.net
www.cas.mcmaster.ca/~se4d03/tutorials/MDIExmpl.pdf

3. Develop a small sample application to help you learn.

4. Ask further clarifying questions by posting code from your sample application.


Don''t do it. WPF Windows are not designed like that, thanks goodness. You need to start with thinking about nice UI design.

There are good alternatives. One very simple but quite good one is System.Windows.Controls.TabControl: http://msdn.microsoft.com/en-us/library/system.windows.controls.tabcontrol.aspx[^].

There are many others. Basically, you can have multiple panels in your window. Hide/Show them, move in/out, minimize/maximize, etc.

You can even use the advanced docking interface line in Visual Studio: http://avalondock.codeplex.com/[^].

—SA


这篇关于如何在另一个窗框内打开窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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