C#中的WPF应用程序 [英] WPF Application in C#

查看:140
本文介绍了C#中的WPF应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是WPF的新手。我想使用MDI Parent创建一个Application。但是WPF不支持它。我想开发一次只能打开一个窗口的应用程序。我怎么能这样做。



谢谢

解决方案

这非常好,WPF不支持MDI,所以你不会有额外的机会折磨自己并吓跑你的用户。



有很多选择。其中一个是 System.Windows.Controls.TabControl ,它可能是最好的一个。请参阅: http://msdn.microsoft .com / zh-cn / library / system.windows.controls.tabcontrol%28v = vs.110%29.aspx [ ^ ]。



非常先进的设计是类似于Visual Studio的对接设计。您可以使用AvalonDock:

http://avalondock.codeplex.com [ ^ ]。



还有很多其他设计,主要是基于隐藏或显示的面板,一次显示一个。可以通过选择列表框中的项目,树视图等来控制它们。



-SA

I am new in WPF .I want to create a Application using MDI Parent. But WPF does not support it.I want to develope application in which only one window form is open at a time.How can i do that.

Thank You

解决方案

This is so good that MDI is not supported in WPF, so you won't have an extra chance to torture yourself and scare off your users.

There are many alternatives. One of them is System.Windows.Controls.TabControl and it might be the very best one. Please see: http://msdn.microsoft.com/en-us/library/system.windows.controls.tabcontrol%28v=vs.110%29.aspx[^].

A very advanced design is the docking one similar to that of Visual Studio. You can use AvalonDock:
http://avalondock.codeplex.com[^].

There are many other designs, mostly based on panels hiding or showing, showing one at a time. They can be controlled by the selection of items in a list box, tree view, and a lot more.

—SA


这篇关于C#中的WPF应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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