Silverlight的VS WPF [英] Silverlight vs WPF

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

问题描述

我的组织正在考虑使用我们的下一代系统的哪些技术。我们将使用.NET,但还没有决定哪些用户界面技术是最好的。 Silverlight和WPF似乎是最合适的选择。有人可以分享每一种方法的优点和缺点?

My organization is considering which technologies to use for our next generation of systems. We will be using .NET, but have not decided which user interface technology is best. Silverlight and WPF seem to be the most appropriate options. Can someone share the pros and cons of each approach?

推荐答案

由于加布里埃尔(和Reed)提到,Silverlight是WPF的一个简化版本。

As Gabriel (and Reed) mention, Silverlight is a slimmed down version of WPF.

WPF 主要面向桌面应用程序,并拥有先进的左右布局,动画功能,以及数据绑定的Silverlight还不具备。 WPF可以通过浏览器传递,但是它不运行作为一个浏览器插入,所以不能与在浏览器中的任何其他内容进行交互。它可以创建一个主机WinForms控件和窗口WPF应用程序 - 这样可以更容易地转换现有的WinForms code的投资组合(如果该事项对你)。 WPF也比Silverlight的更先进的3D功能 - 尽管不是很大

WPF is intended primarily for desktop applications, and it has advanced features around layout, animation, and data binding that Silverlight does not yet have. WPF can be delivered via a browser, but it does not run as a browser plug in, and so cannot interact with any other content in the browser. It is possible to create WPF applications that host WinForms controls and windows - this can make it easier to transition a portfolio of existing WinForms code (if that matters to you). WPF also has more sophisticated 3D capabilities than Silverlight - though not by much.

的Siverlight ,可在通过单声道运行时和Silverlight的月光端口多个平台(如Linux和OSX)。银的光既可以运行作为一个独立的应用程序,或在浏览器环境中 - 这使得能够创建基于web的应用程序。当作为基于浏览器的插件运行,一个Silverlight应用程序可以在浏览器中的内容interfact,并且可以显示侧由端使用HTML。你也可以用JavaScript操作一个Silverlight应用程序 - 创造一个近乎无缝的编程环境。有在Silverlight应用程序有一些限制 - 例如,WCF调用都是异步的(由于到Silverlight /浏览器线程模型)。此外,并非所有的.NET框架的SDK提供给Silverlight应用程序。

Siverlight, is available on multiple platforms (like Linux and OSX) via the Mono runtime and the Moonlight port of Silverlight. Silver light can either run as a stand-alone app, or within a browser environment - which makes it possible to create web-based applications. When run as a browser-based plugin, a Silverlight app can interfact with the content in the browser, and can be displayed side-by-side with HTML. You can also manipulate a Silverlight app using JavaScript - creating a near-seamless programming environment. There are some limitations in Silverlight apps - for instance, WCF calls are all asynchronous (due to the Silverlight/Browser threading model). Also, not all of the .NET framework SDKs are available to Silverlight apps.

这两种技术都在,他们使用的标记和code相结合,提供的功能非常相似。在它们之间进行选择,你需要决定是否你正在建设一个基于浏览器的或独立的应用程序,是否要移植到其他平台,以及是否需要完整的套件在.NET中可用的库。

Both technologies are very similar in that they use a combination of markup and code to deliver functionality. To choose between them, you need to decide whether you are building a browser-based or stand-alone application, whether you want to be portable to other platforms, and whether you need the full suite of libraries available in .NET.

在开发工具方面 - 最好的工具,在那里恕我直言,是防爆pression混合 - 它有一个优雅和强大的用户界面在视觉上产生任何WPF或Silverlight的用户界面。它还集成了Visual Studio中 - 这仍然是一个优越的发展环境(混合有限code编辑功能)。也有像前pression设计和Ex pression恩codeR,以帮助创建图形和操作视频在WPF和Silveright应用工具。

On the development tools front - the best tool out there IMHO is Expression Blend - it has an elegant and powerful UI for visually creating either WPF or Silverlight user interfaces. It also integrates with Visual Studio - which is still a superior development environment (Blend has limited code editing features). There are also tools like Expression Design and Expression Encoder to help with creating graphics and manipulating video for use in both WPF and Silveright applications.

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

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