WPF 是否比 winforms 更“浮华"? [英] Are WPF more 'flashy-like' than winforms?

查看:30
本文介绍了WPF 是否比 winforms 更“浮华"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 visio,安装程序几乎就像是在 Flash 中构建的.当我将鼠标悬停在按钮上时,它们会有点发光,当我点击继续"时,表单以一种很酷的方式逐渐消失.

I just installed visio, and the installer almost seemed like it was built in flash. The buttons kinda glowed when I hovered over them, and when I clicked on 'continue' the form phased out in a cool way.

我假设它是用 WPF 构建的.

I'm assuming it was built in WPF.

无论如何,WPF 更像 Flash(从视觉上来说).与 winforms 相比,它们是否有新的属性,您可以让表单很好地/平稳地逐步淘汰?

Anyhow, so are WPF more flash-like (visually speaking). Do they have new properties where you can make forms phase out nicely/smoothly compared to winforms?

推荐答案

免责声明:我为 Microsoft 工作.但是,我不在 Visio、WPF、CLR 或 Silverlight 团队工作.因此,以下是我个人对这些技术的看法.如果你想引用我的话,不要暗示这是微软的官方立场.:-))

Disclaimer: I work for Microsoft. However, I don't work on Visio, WPF, CLR or Silverlight team. So, the following is my personal take on these technologies. If you want to quote me, don't do it implying it's the official Microsoft position. :-))

更新:我在下面所说的关于 Flash/Flex/AIR 的任何内容都可能是错误的,因为我没有使用过这些技术,我对它们的了解是基于我在插管上阅读的内容.:-) 如果您发现任何错误,请在评论中大喊大叫,我会更正.

Update: Anything I say below about Flash/Flex/AIR might be wrong, as I have not worked with these technologies and what I know about them is based on what I read on the intertubes. :-) If you notice anything wrong, just shout in the comment and I'll correct it.

据我所知,Visio 安装程序不是用 WPF 构建的.都是非托管代码;只是人们花了很多心思让它真正打磨.

To the best of my knowledge, the Visio installer is not built with WPF. It's all unmanaged code; it's just people took a lot of care to make it really polished.

WPF 是用于为 Windows 操作系统构建独立应用程序的新 UI 平台.它支持声明性 UI 语言 - XAML 和相关的 CLR 类型进行编程.WPF 是与 WinForms 不同的平台,尽管可以构建混合使用两者构建的 UI 的应用程序.WPF 支持很多 WinForms 不支持的功能,如位图效果、动画、控件样式等,并以 XAML 或通过代码公开它们.此外,WPF 严重依赖矢量图形,而不是 WinForms 中的像素图形.简而言之,WPF 非常强大,可以构建非常时髦的 UI.(不过,不要相信我的话,因为我有偏见;去看看人们对它的看法或使用它.:-))

WPF is the new UI platform for building standalone applications for the Windows OS. It supports a declarative UI language - XAML, and related CLR types to program against. WPF is a different platform than WinForms, although it is possible to build applications that mix UI built with both. WPF supports a lot of things that WinForms does not, like bitmap effects, animations, control styling and so on and exposes them both in XAML or through code. Also, WPF relies heavily on vector graphics, as opposed to the pixel graphics in WinForms. In short, WPF is quite powerfull and allows building very snazzy UI. (Don't take my word for it, though, as I am biased; go check around for what people are saying about it or buiding with it. :-))

WPF 和 WinForms 不与 Flash/Flex 竞争.WPF 和 WinForms 都是用于构建独立客户端应用程序的 UI 框架.据我所知,Flash/Flex 是用于构建富 Internet 应用程序的框架 - RIA(尽管最近人们开始将这个缩写解释为富交互应用程序).

WPF and WinForms do not compete with Flash/Flex. WPF and WinForms are both UI frameworks for building standalone client applications. As far as I know, Flash/Flex are frameworks for building rich internet applications - RIA (though lately people started interpreting this abbreviation as rich interactive applications).

Adobe 确实在大约半年(或一年)前提出了 AIR,它允许构建独立的客户端应用程序,因此可以说 Adob​​e 试图定位 Flash/Flex/AIR 以与 WPF 竞争.当然,这是我的看法,我怀疑 Adob​​e 的官方立场是那样的.

Adobe did come up with AIR about half a year (or maybe a year) ago, which allows building standalone client applications, so you could say that Adobe is trying to position Flash/Flex/AIR to compete with WPF. Of course, that's my take on it and I doubt Adobe's official positiong is anything like that.

如果您想将特定的 MS 技术与 Flash/Flex 进行比较,请查看 Silverlight - 它是 MS RIA 平台.

If you want to compare particular MS technnologies with Flash/Flex, take a look at Silverlight - it's the MS RIA platform.

Silverlight 与 WPF 相关,因为它们共享 XAML 和相应的 CLR 类型.不过,Silverlight 仅支持 WPF 所提供功能的一个子集,因为它不仅仅针对 Windows 操作系统,因此受到它必须具有可移植性这一事实的限制.

Silverlight is related to WPF in the sense that they share XAML and the corresponding CLR types. Silverlight supports only a subset of what WPF offers, though, as it is not targeting Windows OS only and thus is limited by the fact that it has to be portable.

快速更新以反映自我写下答案以来这一年的变化:-)

随着 Silverlight 3 的发布,SL 和 WPF 之间的距离越来越近,并且共享更多的受支持功能.此外,大多数新的 XAML 控件都是同时为平台构建的.因此,SL/WPF 正走向一个奇点...

With Silverlight 3 shipped, SL and WPF are getting even closer and sharing bigger set of supported features. In addition, most of the new XAML controls are built for platform at the same time. Thus, SL/WPF are getting to a point of singularity...

此外,SL 3 支持浏览器外应用程序.从这个意义上说,SL 不仅开始与 Flash/Flex 竞争,而且还在蚕食 AIR 的地盘.

Also, SL 3 supports out-of-browser applications. In that sense, SL is not only starting to compete with Flash/Flex, but it is also encroaching on AIR's turf.

不,我仍然不在 WPF 或 Silverlight 团队工作.:-)

And no, I still don't work on the WPF or Silverlight team. :-)

这篇关于WPF 是否比 winforms 更“浮华"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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