wpf 什么是WPF浏览器应用类型项目?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4782442/
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
What is the WPF browser application type project?
提问by Thomas
When should one use the WPF browser application? What is the utility of this project type? When should a developer use this?
什么时候应该使用 WPF 浏览器应用程序?这种项目类型有什么用?开发人员应该什么时候使用它?
采纳答案by Erno
XBAP applications (if that is what you are refering to) require the client to have the .NET framework installed (as opposed to Silverlight that only requires the Silverlight plug-in)
XBAP 应用程序(如果这就是您所指的)需要客户端安装 .NET 框架(而不是 Silverlight 只需要 Silverlight 插件)
This allows XBAP applications to use the entire functionality of the .NET framework which is much broader than Silverlight.
这允许 XBAP 应用程序使用比 Silverlight 更广泛的 .NET 框架的全部功能。
回答by Daniel May
A WPF Browser application is an app that runs in-browser as an XBAP (Xaml Browser Application).
WPF 浏览器应用程序是在浏览器中作为 XBAP(Xaml 浏览器应用程序)运行的应用程序。
You can find a little more information on the uses and reasons to use XBAPs here.
您可以在此处找到有关使用 XBAP 的用途和原因的更多信息。
This thread on MSDNmight help also.
MSDN 上的这个线程也可能有帮助。
回答by A.R.
XBAP applications also may or may not have full trust and features depending on how you set it up and deploy it to the end users. An advantage to an XBAP is that your users will always use the latest version that you publish, say to a website.
XBAP 应用程序也可能具有或不具有完全信任和功能,具体取决于您如何设置它并将其部署到最终用户。XBAP 的一个优势是您的用户将始终使用您发布的最新版本,比如网站。
回答by Shadi Namrouti
WPFis Windows Presentation Foundation that creates the UI for Windows desktop applications (normally).
WPF是 Windows Presentation Foundation,它为 Windows 桌面应用程序(通常)创建 UI。
The WPF Browser Appis similar to Java applets which uses a browser plugin to run the applet. In Microsoft case, a .Net Framework support plugin is what is used at the client side. i.e. web browser.
在WPF浏览应用程序类似,它使用浏览器插件来运行小程序的Java小程序。在 Microsoft 的情况下,客户端使用的是 .Net Framework 支持插件。即网络浏览器。
As a side note, xbap plugins and similar risky approaches are not supported in Google Chrome or Edge anymore. Therefore, it's good to avoid or unlearn developing in WPF browser apps.
附带说明一下,Google Chrome 或 Edge 不再支持 xbap 插件和类似的冒险方法。因此,最好避免或忘记在 WPF 浏览器应用程序中进行开发。