Is WPF XAML Browser Application (XBAP) works on Android and Windows Phone browsers? What are the alternatives?

ぐ巨炮叔叔 提交于 2019-12-05 11:53:37

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

No.

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).

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).

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

What are the alternatives?

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

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!