WPF是否可以替代Windows应用程序? [英] WPF is replacement for Windows Application ?

查看:91
本文介绍了WPF是否可以替代Windows应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在为我们的业务解决方案提供Windows applicaton(正在使用100多个获胜表格).最近,我们计划将Windows应用程序迁移到WPF.但是在WPF中没有可用的MDI概念.
请提供有关WPF是否比胜出的应用程序提供更多好处的建议.

We are having windows applicaton ( more than 100 win forms are using) for our business solutions. Recently we are planning to migrate our windows application to WPF. But in WPF there is no MDI concepts available.
Kindly advice, whether WPF will give more benefits than win applications.

推荐答案

如果您正在寻找好处的好清单,请访问
http://windowsclient.net/wpf/white-papers/when-to-adopt- wpf.aspx [ ^ ]
http://joshsmithonwpf.wordpress.com/2007/09/05/wpf-vs -windows-forms/ [ ^ ]

我的看法是,将来微软会为Xaml(也许还有WPF)制定一些计划,但没有Windows Forms的计划,因此我想如果要迁移,可以将其移植到WPF.

由于您正在迁移,因此您也可以查看Metro风格的应用程序,尽管查看项目大小(100个表单),但它可能不适合您.
If you are looking for a good list of advantages, visit
http://windowsclient.net/wpf/white-papers/when-to-adopt-wpf.aspx[^]
http://joshsmithonwpf.wordpress.com/2007/09/05/wpf-vs-windows-forms/[^]

My take on this is that in the future Microsoft has some plans for Xaml (and maybe WPF) but no plans for Windows Forms, so I suppose if you are going to migrate, you can do so to WPF.

Since you are strating to migrate, you can also look at Metro style apps, though looking at your project size (100 forms), it may not be suited to you.


您是认真的吗?可怜的微软公司如此努力地劝阻并最终采用他们自己的烂UI概念,该概念早在多年前就已被Pandora淘汰,并最终至少获得了有限的成功:最后,MDI未包含在WPF中.

您多久以前没有看到MDI,甚至还没有或多或少地拥有专业UI?你好!?在哪里?哪有这回事.由于某种原因,您仍然想要它. MDI是劝阻的吗?您知道喜欢它的用户吗?

请参阅:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [在WPF中使用MDI窗口的问题 [ ^ ],
MDIContainer提供错误 [如何在WPF中创建MDI父窗口? [ ^ ].

其中一些文章和过去的答案可能会向您解释您可以做什么.

最后,我想问你,为什么要为业务应用程序迁移到WPF?即使与从头开始创建项目相比,在工作上的投资也可能是可观的,但是收益如何呢?如果这只是用来检查,清理和恢复所有代码的机会,我会理解的,但是如果您认为可以得到一些新的质量……我喜欢WFP中的许多事情.您可以在2D或3D矢量图形,动画,游戏或图表,图形模型,CAD中获得根本的好处,但是在商业应用中呢?您真的需要利用以上任何一种优势吗?好吧,潜在的WPF距Windows迈出了一大步,这非常吸引人,但是何时会发生呢?现在,情况正好相反:我可以在许多平台上运行大多数.NET Forms应用程序(通过Mono;实际上我是在Linux和Mac OS X上运行的),但是尚未计划将WPF移植到Mono. ,您真的认为迁移是可行的吗?

—SA
Are you serious? Poor Microsoft worked so hard to discourage and ultimately undertake their own rotten UI concept which have been let out of Pandora box many ears ago and finally won at least limited success: finally, MDI was not included in WPF.

How long time ago did you see MDI not even in brilliant but at least more or less professional UI? Hello!? Where? There is no such thing. And by some reason you still want it. MDI is discourage? Do you know a user who would prefer it?

Please see:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^],
How to Create MDI Parent Window in WPF?[^].

Some of these articles and past answers could explain you what can you do instead.

Finally, I would ask you, why would you migrate to WPF for such thing as business application? The investment in the work can be considerable even when compared with creating a project from scratch, but how about benefits? If this is just an occasion used to review, clean up and rejuvenate all the code, I will understand you, but if you think that you can get some new quality… I like many things in WFP. You can get fundamental benefits in 2D or 3D vector graphics, animation, gaming or diagramming, graphical models, CAD… but business application? Do you really need to take benefits of any of the above? Well, potentially WPF is a huge step away of Windows, which is very attractive, but when it may happen? At this moment, the situation is directly opposite: I can run most of my .NET Forms applications on many platforms (via Mono; practically I did it on Linux and Mac OS X), but porting WPF to Mono was not yet planned… So, do you really think you migration is practical?

—SA


看看这些页面:

http://weblogs.asp.net/bsimser/存档/2008/02/25/wpf-or-winforms-choose-wisely.aspx [ http://joshsmithonwpf.wordpress.com/2007/09/05/wpf-vs -windows-forms/ [ ^ ]

我个人更喜欢WPF,因为它可以轻松快捷地创建视觉效果及其绑定功能.如果您决定有一天使用WPF,请不要忘记使用MS Expression Blend,这将大大提高您的开发速度.

对于MDI文档的问题,请查看此页面:
http://wpfmdi.codeplex.com/ [ ^ ]
或者,您可以使用选项卡式内容.

希望对您有所帮助.
Have a look at these pages:

http://weblogs.asp.net/bsimser/archive/2008/02/25/wpf-or-winforms-choose-wisely.aspx[^]

http://joshsmithonwpf.wordpress.com/2007/09/05/wpf-vs-windows-forms/[^]

I personally prefer WPF because of ease and quickness of creating visual effects and also its binding features. If you decided someday to use WPF do not forget to use MS Expression Blend which will boost your development speed very much.

For the problem of MDI documents have a look at this page :
http://wpfmdi.codeplex.com/[^]
Or you can use tabbed content.

Hope it helps.


这篇关于WPF是否可以替代Windows应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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