WPF XAML 浏览器应用程序 (XBAP) 是否适用于 Android 和 Windows Phone 浏览器?有哪些替代方案? [英] Is WPF XAML Browser Application (XBAP) works on Android and Windows Phone browsers? What are the alternatives?

查看:57
本文介绍了WPF XAML 浏览器应用程序 (XBAP) 是否适用于 Android 和 Windows Phone 浏览器?有哪些替代方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的小公司创建一个简单的 CRM 网站.感谢 stackoverflow 上的人,我假设我可以使用 WPF XAML 浏览器应用程序 (XBAP):

I want to create simple CRM website for my small company. Thanks to people on stackoverflow I assume that I can use WPF XAML Browser Application (XBAP):

WPF XAML 浏览器应用程序 (XBAP) 是否适用于 Android 和 Windows Phone 浏览器?它是否假设部署在服务器/云上,然后您使用什么设备、互联网浏览器、操作系统都无关紧要?

Does WPF XAML Browser Application (XBAP) work on Android and Windows Phone browsers? Is it suppose to be deployed on a server/cloud and then it does not matter what device, internet browser, operating system you use?

这是我说的技术:http://msdn.microsoft.com/en-us/library/aa970060%28v=vs.110%29.aspx

如果没有,我是否有任何涉及 .NET 的替代方案?

If not, do I have any alternatives involving .NET?

编辑Xamaring 看起来很诱人,但恐怕对我来说太难了.

EDIT Xamaring seems tempting but I am afraid that it is too hard for me.

  1. 是否可以在 Xamarin 中编写一个应用程序并在不进行任何更改的情况下在 Windows 和 Android 上运行它?
  2. 如果我们谈论 ASP .NET 是用 ASP 编写的网站,那么 BET 将在 Android 手机上拥有完整的功能(按钮、文本字段)吗?

推荐答案

WPF XAML 浏览器应用程序 (XBAP) 是否适用于 Android 和 Windows Phone 浏览器?

Does WPF XAML Browser Application (XBAP) work on Android and Windows Phone browsers?

没有.

XBAP 确实是一种 HACK,通过在 Internet Explorer 中运行 WPF 应用程序,使它们看起来"像是网络应用程序".它不支持任何其他浏览器(Chrome、Mozilla 等),也不能在移动设备上运行.它需要在目标机器上安装完整的 .Net Framework,因此它只能在支持完整 .Net Framework 的设备上运行(Windows PC、笔记本电脑和带有完整版 Windows(非 RT)的平板电脑).

XBAP is really a HACK to make WPF applications "seem" like they're "web apps" by running them inside Internet Explorer. It does NOT support any other browsers (Chrome, Mozilla, etc) and it does NOT run in mobile devices. It requires the full .Net Framework installed in the target machine and thus it is only runnable in devices which support the full .Net Framework (Windows PC, Notebooks and Tablets with the full version of Windows (NOT RT).

Web 应用程序由处理 Web 请求和传送 Web 内容(由 HTML 组成)的 Web 服务器组成> [以及可选的 CSS 和 JavaScript]) 到 Web 客户端(支持 HTML 的设备和应用程序,例如 PC、笔记本、平板电脑、智能手机).

A Web application consists of a Web Server that processes Web Requests and delivers Web Content (consisting of HTML [and optionally CSS and JavaScript]) to Web Clients (HTML-enabled devices and applications such as PCs, NoteBooks, Tablets, SmartPhones).

任何不提供网络内容(由HTML组成)的东西都不是网络技术,不应用于构建网络应用程序.

Anything that does not deliver Web Content (consisting of HTML) is NOT a Web technology and should NOT be used to build Web Applications.

有哪些替代方案?

如果您需要构建 Web 应用程序,请使用标准 Web 技术,例如 ASP.Net.

If you need to build a Web Application, then use standard Web technologies, such as ASP.Net.

如果您需要在不同设备中使用专门的功能,您可以构建基于 Web 服务的 API,然后为每个平台创建特定的客户端.Xamarin 是一种允许您使用 C# 和常见的不同移动目标的代码库,也可以以 PCL 的形式与 Windows 应用程序 (WPF) 共享.

If you need specialized capabilities in different devices, you can build a Web-Service based API and then create specific clients for each platform. Xamarin is a technology that allows you to do this using C# and a common code base for different mobile targets, which can also be shared in the form of PCLs with Windows Applications (WPF).

这篇关于WPF XAML 浏览器应用程序 (XBAP) 是否适用于 Android 和 Windows Phone 浏览器?有哪些替代方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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