在 Windows 窗体上使用 WPF 有什么好处? [英] What are the benefits of using WPF over Windows Forms?

查看:22
本文介绍了在 Windows 窗体上使用 WPF 有什么好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前使用 .NET 和 Windows 窗体编写过用户界面.

I have previously written user interfaces using .NET and Windows Forms.

我即将开始开发一款新软件.该软件只是一个简单的实用程序,它将使用富文本字段、几个按钮、对话框等.

I'm about to start development on a new piece of software. This software is just a simple utility which will make use of Rich Text fields, a few buttons, dialog boxes, etc.

Windows Forms 似乎非常适合于此.我不需要任何华而不实的东西.

It seems Windows Forms is ideally suitable for this. I don't need anything flashy.

不过,WPF 是个新东西,我想学习一下.

However, WPF is something new, and I'd like to learn it.

我在 WPF 中创建了一个 hello world 应用程序,但我并不高兴,因为运行该应用程序花费了太多时间并且编译它的时间加倍.

I made a hello world application in WPF, and I'm not happy, because it takes way too much time to run the application and double that amount of time to compile it.

我是 WPF 的新手,所以我有不止一个问题:

I'm new to WPF, so I have more than one question:

  1. WPF 适用于哪些类型的应用程序?
  2. Windows 窗体的未来是什么?
  3. WPF 的当前版本是什么?我猜它是 1.0,因为它带有 NET Framework 3.0.
  4. 下一版本的 WPF 是否会对我在制作第一个 Hello World WPF 应用程序时发现的内容进行重大改进?
  5. WPF 是否会与 NET 4.0 一起更新(我的意思是,下一版本将随 .NET v4 一起提供)?

推荐答案

参见:https://stackoverflow.com/questions/713193/wpf-vs-windows-forms/713249#713249

回答您的问题:

  1. WPF 可用于任何类型的应用程序,但它在广泛使用 3D、视频、动画、针对 XML 的数据绑定的应用程序中确实大放异彩
  2. 没有人确切知道,但 Windows 窗体肯定会存在一段时间.Microsoft 没有构建 WPF 来替换 Windows 窗体.
  3. 当前版本是 WPF 3.5 SP1
  4. 他们将引入新控件(类似 Office 的功能区控件、DataGrid 等)、提高性能和更多增强功能.另见:.NET 3.5 客户端产品路线图.
  5. 是的,我相信是这样.
  1. WPF can be used for any type of application, but it really shines in applications that make extensive use of 3D, video, animations, databinding against XML
  2. Nobody knows for sure, but Windows Forms will definitely be around for a while. Microsoft did not build WPF to replace Windows Forms.
  3. The current version is WPF 3.5 SP1
  4. They're going to introduce new controls (an Office-like Ribbon Control, DataGrid and more), improve performance, and more enhancements. See also: .NET 3.5 Client Product Roadmap.
  5. Yes, I believe so.

这篇关于在 Windows 窗体上使用 WPF 有什么好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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