WPF WBA (XBAP) 与 Silverlight [英] WPF WBA (XBAP) versus Silverlight

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

问题描述

我正在考虑创建一个包含网站的系统/站点.我想获得WPF的好处,而WBA似乎是这样做的好途径.另一方面,Silverlight 也有助于实现这一目标,不同之处在于 WBA 提供了比 Silverlight 更多的选项和功能.

I'm looking into creating a system / site which includes a website. I would like to get the benefits of WPF, and WBA seems to be a good avenue of doing this. Silverlight on the other hand is also good for accomplishing this goal, with the difference that WBA provides more options and power than Silverlight.

使用 WBA 与 Silverlight 相比有哪些好处/损失?仅 IE 支持 WBA 吗?

What are the benefits / losses that come with using WBA versus Silverlight? Is WBA only supported in IE?

任何见解都会非常有帮助.

Any insight would be very helpful.

推荐答案

我猜你是说 XBAP(XAML 浏览器应用程序)和 WBA?

I assume you mean XBAP (XAML Browser Application) with WBA?

Silverlight 和 XBAP 彼此非常相似,但它们确实有一些主要区别.其中最大的一个原因很可能是 XBAP 运行在完整的 .Net 框架之上,而 Silverlight 使用精简版的 CLR 和类库.这导致 Silverlight 缺少 XBAP 中可用的 WPF 的一些功能.

Silverlight and XBAP are pretty similar to each other but they do have some major differences. The largest of these is most likely the fact that XBAPs run on top of the full .Net framework while Silverlight uses a stripped down version of the CLR and class libraries. This results in Silverlight lacking some of the features that WPF has which are available in XBAPs.

另外值得理解的是,XBAP 从技术上讲是 ClickOnce 应用程序,因此它们被安装到用户的计算机上.这是自动发生的,用户不一定理解这一点 - 但至少对我来说,如果我看到从随机网站加载 XBAP,我很可能会取消它并转到另一个网站.

Also it is worth understanding that XBAPs are technically ClickOnce applications and as such they are installed to the user's computer. This happens automatically and the user doesn't necessarily understand that - but at least for me, if I saw a XBAP loading from a random web site, I would most likely cancel it and go to another site.

XBAP 还需要 IE 或 Firefox 以及为其构建的 .Net 框架.Silverlight 只需要 Silverlight 播放器,该播放器可用于 IE、Firefox 和 Safari,可在 Windows 和 OSX 上运行,并且在下载大小方面比完整的 .Net 框架小得多.

XBAPs also require IE or Firefox and the .Net framework they are built for. Silverlight requires only the Silverlight player which is available for IE, Firefox and Safari and works on Windows and OSX and is much smaller than the full .Net framework in terms of download size.

也就是说,如果我知道限制不是问题,我更喜欢 XBAP.如果我正在开发用于 Intranet 的应用程序,我会选择 XBAP,因为它提供了更多功能的框架.如果要在 Internet 上部署应用程序,我会使用 Silverlight 来覆盖尽可能多的用户.

This said, I prefer XBAPs if I know that the limitations are not an issue. If I was developing an application for intranet use, I'd go with a XBAP as it provides more versatile framework. If the application was to be deployed in the internet, I'd use Silverlight to reach as many users as possible.

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

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