Silverlight 和 XBAP 之间有什么区别?

发布于 2024-08-02 13:06:28 字数 51 浏览 4 评论 0原文

Silverlight 和 XBAP 之间有什么区别? 您会在哪里使用其中一种与另一种?

What is the difference between Silverlight and XBAP?
Where would you use one vs. the other?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

余生共白头 2024-08-09 13:06:28

历史课。
我们创建 WPF 最初是为了让设计能够更多地参与基于 Windows 的应用程序,因为这是我们从 WinForms 世界发现的一致反馈。我们生产 WPF,它借用了 HTML 中的类似技术,但采用了我们所说的更成熟的方式 (XAML)。

然后,我们决定(根据客户反馈)在 x 平台和 x 浏览器机器上实现此愿景的一部分。结果我们最终得到了 WPF/E (WPF Everywhere),后来更名为 Silverlight。

WPF 与 Silverlight。
简单的答案是,如果您想创建一个具有 x 平台/x 浏览器范围的解决方案,那么 Silverlight 是您最好的选择。缺点是您将无法摆脱浏览器中强加的沙箱,因此如果它是一个乐于生活在脱离其所在世界的机器的应用程序中,Silverlight 可以为您提供一个非常合理的结果(浏览器外、独立存储等确实允许您比正常情况下更多地访问个人计算机)。

然而,WPF 可用于深度访问,这意味着您想要访问 USB 驱动程序或与 .NET 等替代技术进行对话。原理相同,只是更深层次的无限制访问。

您可以部署 .XBAP 解决方案,该解决方案与 Silverlight 非常相似,但在访问方面提供了更深层次的...将其视为 WPF 和 Silverlight 之间的中间子。

继续前进。
我们正在花费周期确保 WPF/Silverlight 在统一 API 等方面更加融合,以使您能够升级/降低技术体验,而无需从根本上改变您的逻辑。我们今天已经有了可以为您提供帮助的框架(即 PRISM/MEF),但我们正在努力使这两种技术恢复到对等的水平。

随时欢迎提供反馈,并随时在 Twitter 上关注我们,通过 @teamsilverlight 进行投诉/赞扬。

Scott Barnes / 丰富平台产品经理 / Microsoft。

History Lesson.
We made WPF originally to allow design to get more hands on when it comes to Windows based applications as this was consistent feedback we found from the WinForms world. We produce WPF, and it kind of borrowed similar techniques found from HTML but in a more what we'd call mature fashion (XAML).

We then decided (based off customer feedback) to enable a subset of this vision on x-platform and x-browser machines. As a result we ended up with WPF/E (WPF Everywhere) which was later renamed Silverlight.

WPF vs Silverlight.
Easy answer is this, if you want create a solution with x-platform / x-browser reach, then Silverlight is your best bet. The downside is you won't be able to break out of the sandbox imposed within browsers, so if its an application that is happy to live in a hands off the machine it dwells in world, Silverlight can provide you a more than reasonable result (Out Of Browser, Isolated Storage etc do allow you more access to a persons machine than normal).

WPF however is there for deep access, meaning you want to access a USB driver or talk to an alternative technology to .NET etc.. same principles, just deeper unrestricted access.

You can deploy .XBAP solutions which is very similar to Silverlight, but provides a bit deeper in terms of access... think of it as the middle child between WPF and Silverlight.

Going Forward.
We are spending cycles ensuring WPF/Silverlight converge more in terms of a uniform API etc, to enable you to graduate up/down the technology experience without having to radically shift your logic. We've got frameworks in place today (ie PRISM/MEF) that will help you here, but we are working hard to bring the two technologies back to parity for you all.

Feedback is always welcome and feel free to follow us on twitter to complain/praise via @teamsilverlight.

Scott Barnes / Rich Platforms Product Manager / Microsoft.

雨后咖啡店 2024-08-09 13:06:28

Silverlight 是跨平台的,并且在浏览器中运行其应用程序;它可以在任何使用网络浏览器的地方使用。

WPF 仅限 Windows,通常在桌面上运行其应用程序;它需要安装.NET框架。

Silverlight 可以被视为 WPF 的子集(尽管这在技术上并不正确)。它没有 WPF 所具有的功能集。然而,你在功能上失去的东西,却在可采用性上获得了好处。

WPF 可以使用所谓的 XBAP 通过浏览器部署应用程序。不过,这与 Silverlight 不同。 Silverlight 应用程序实际上集成到浏览器中,而 WPF 仅使用浏览器作为其进程的主机。

有关 WPF 和 Silverlight 之间差异的更深入指南,我将参考此白皮书 CodePlex。

Silverlight is cross-platform and runs its applications in the browser; it can be used anywhere you use a web-browser.

WPF is Windows-only and usually runs its applications on the desktop; it requires that the .NET framework is installed.

Silverlight can be viewed as a subset of WPF (though this isn't technically correct). It does not have quite the feature set that WPF has. What you lose in functionality, though, you gain in adoptability.

WPF can deploy applications through the browser, using what is called an XBAP. This is not the same as Silverlight, though; whereas Silverlight applications are actually integrated into the browser, WPF is merely using the browser as a host for its process.

For a more in-depth guide on the differences between WPF and Silverlight, I would refer to this white-paper on CodePlex.

梦里°也失望 2024-08-09 13:06:28
  1. 从用户的角度来看,要查看 WPF 浏览器应用程序,用户将需要安装比 Silverlight 运行时高得多的总点网框架。

    从用户的角度来看,要

  2. WPF 浏览器应用程序在 Windows 操作系统之外无法运行

  3. WPF 浏览器应用程序还可以使用更多功能(例如带有摄像头和灯光的真实 3D) Silverlight 无法做到这一点。

  1. From users perspective to view WPF Browser application user will need total dot net framework to be installed that is considerably higher than Silverlight runtime.

  2. WPF browser applications will not work except windows OS

  3. There are much more features you can use (Like real 3D with camera and light) with WPF browser applications that you can not do with silverlight.

妞丶爷亲个 2024-08-09 13:06:28

最大的区别是沙箱。两者都是沙盒的,但 WPF 浏览器应用程序(例如 XBAP)可以请求更多权限,但在 Silverlight 中则不能(根据设计)。

The big difference is the sandbox. Both are sandboxed, but WPF-Browser apps (e.g. XBAP) can ask for more permissions, but in Silverlight you can't (by design).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文