C# WPF 和 Silverlight 应用程序有什么区别?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/629927/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 11:01:00  来源:igfitidea点击:

What is the difference between WPF and Silverlight application?

c#wpfsilverlight

提问by Rakesh Agarwal

What is the difference between WPF and Silverlight application? Are they the same?

WPF 和 Silverlight 应用程序有什么区别?他们是一样的吗?

回答by cletus

WPF is essentially the replacement to Winforms in that it is a desktop application platform built on the .Net (3+) platform.

WPF 本质上是 Winforms 的替代品,因为它是一个构建在 .Net (3+) 平台上的桌面应用程序平台。

Silverlight represents a subset of WPF that is delivered through a browser plug-in, much like Flash/Flex.

Silverlight 代表通过浏览器插件提供的 WPF 子集,很像 Flash/Flex。

回答by hmcclungiii

Silverlight (codenamed WPF/E) is a cross-platform, cross-browser, browser plugin which contains WPF-based technology (including XAML)[17] that provides features such as video, vector graphics, and animations to multiple operating systems including Windows Vista, Windows XP, and Mac OS X, with Microsoft sanctioned 3rd party developers working ports for Linux distributions.[18] Specifically, it is currently provided as an add-on for Mozilla Firefox, Internet Explorer 6 and above, and Apple Safari. Silverlight and WPF only share the XAML presentation layer.

Silverlight(代号 WPF/E)是一个跨平台、跨浏览器的浏览器插件,它包含基于 WPF 的技术(包括 XAML)[17],可为包括 Windows 在内的多个操作系统提供视频、矢量图和动画等功能Vista、Windows XP 和 Mac OS X,Microsoft 批准了第 3 方开发人员为 Linux 发行版工作的端口。[18] 具体来说,它目前作为 Mozilla Firefox、Internet Explorer 6 及更高版本和 Apple Safari 的附加组件提供。Silverlight 和 WPF 仅共享 XAML 表示层。

WIKI

维基

回答by JaredPar

WPF is based off of the desktop CLR which is the fullversion of the CLR.

WPF 基于桌面 CLR,它是 CLR 的完整版本。

Silverlight is based on a much smaller and more compact CLR which provides a great experience but does not have the full breadth of CLR features. It also has a much smaller version of the BCL.

Silverlight 基于一个更小、更紧凑的 CLR,它提供了很好的体验,但没有 CLR 的全部功能。它还有一个小得多的 BCL 版本。

回答by Matthias Meid

Silverlight is a subset of WPF. Once it was known as WPF/E (WPF everywhere). In fact, the base framework is similar, but not the same.

Silverlight 是 WPF 的一个子集。曾经被称为 WPF/E(WPF 无处不在)。其实基础框架大同小异,但又不尽相同。

See this for further information: Silverlight "WPF/E" first steps: Getting started with simple analog clock, Introduction - What is WPF/E?

有关更多信息,请参阅:Silverlight“WPF/E”第一步:简单模拟时钟入门,简介 - WPF/E 是什么?

回答by Dhammakirty ....Dk

Silverlight is Microsoft's latest development platform for building next-generation Web client applications (WPF) is Microsoft'slatest development platform forbuilding next-generation Windows client applications

Silverlight 是 Microsoft 用于构建下一代 Web 客户端应用程序 (WPF) 的最新开发平台是 Microsoft 用于构建下一代 Windows 客户端应用程序的最新开发平台

Silverlight is generally considered to be a subset of WPF, and is a XAML WPF is generally considered to be a subset of .NET Framework

Silverlight 通常被认为是 WPF 的子集,并且是 XAML WPF 通常被认为是 .NET Framework 的子集

Silverlight Support Cross OS, cross browser, cross device WPF for Windows client users.

Silverlight 支持 Windows 客户端用户的跨操作系统、跨浏览器、跨设备 WPF。

in order to run Silverlight applications at client machines, we need to install Silverlight software on the client machine once WPF, on the other hand, does notsupport any plug-in mechanism;instead, we need to install a completed WPF client application

为了在客户端机器上运行Silverlight应用程序,我们需要在客户端机器上安装一次WPF的Silverlight软件,另一方面,不支持任何插件机制;相反,我们需要安装一个完整的WPF客户端应用程序

Silverlight applications are hosted within a webserver and a web page. WPF applications can be deployed as standalone applications,

Silverlight 应用程序托管在网络服务器和网页中。WPF 应用程序可以部署为独立的应用程序,

回答by mxgg250

Silverlight is a subset of WPF and therefore has fewer features but is more portable. WPF can be ran in both a browser or as a WinForms style application in Windows while Silverlight can only be ran in a browser. WPF is intended to run on Windows systems while Silverlight runs on Windows or Mac, also Linux via Moonlight.

Silverlight 是 WPF 的一个子集,因此功能较少,但更便于携带。WPF 既可以在浏览器中运行,也可以作为 Windows 中的 WinForms 样式应用程序运行,而 Silverlight 只能在浏览器中运行。WPF 旨在在 Windows 系统上运行,而 Silverlight 在 Windows 或 Mac 上运行,也可以通过 Moonlight 在 Linux 上运行。

If confused on when to use each, I found a useful blog better explaining this: http://blogs.msdn.com/b/jennifer/archive/2008/05/06/when-should-i-use-wpf-vs-silverlight.aspx

如果对何时使用每个感到困惑,我发现一个有用的博客更好地解释了这一点:http: //blogs.msdn.com/b/jennifer/archive/2008/05/06/when-should-i-use-wpf-vs -silverlight.aspx

回答by Chandru A

wpf is window application and Silverlight is web application

wpf 是窗口应用程序,Silverlight 是 Web 应用程序

回答by LiriB

A detailed comparison can be found here: http://wpfslguidance.codeplex.com/

可以在这里找到详细的比较:http: //wpfsluidance.codeplex.com/