创建一个可以支持Windows 7,WinRT,Win8和Windows Mobile的应用程序 [英] Create a application which can support Windows 7, WinRT, Win8 and Windows Mobile

查看:127
本文介绍了创建一个可以支持Windows 7,WinRT,Win8和Windows Mobile的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个可以支持Windows 7,WinRT,Win8和Windows Mobile的新应用程序。

请建议我开发相同的技术,在所有环境中兼容。

i want to develop a new application which can support Windows 7, WinRT, Win8 and Windows Mobile.
please suggest me the technology to develop the same which is compatible in all environments.

推荐答案

您将需要使用基于XAML的技术。



没有一个堆叠跨越所有这些平台,所以你不会有一次写一次运行的解决方案。



最好的方法是使用可移植类库来创建可重用的逻辑,然后根据需要创建不同的XAML接口项目以及特定于平台的代码。
You will want to use a XAML-based technology.

There is not a single stack that crosses all of those platforms, so you will not have a write once-run everywhere solution.

The best approach is to use the Portable Class Library to create re-usable logic, then create different XAML interface projects along with platform specific code as needed.


您好,

您可能需要考虑使用HTML5 / JavaScript开发应用程序并使用App框架如AppMobi(appmobi.com)或PhoneGap(phonegap.com)可部署到多个平台,如Windows 8,Windows 8 Phone和Windows 7 Phone。这些框架支持跨平台的应用程序(适用于Windows,iOS和Android)。我不确定在Windows 7上运行应用程序的意思,如果您的意思是在浏览器中运行的Web应用程序,那么HTML5 / JavaScript Web应用程序也可用于此目的。



谢谢,
Hi,
You may want to consider to develop your application in HTML5/JavaScript and use App Frameworks like AppMobi(appmobi.com) or PhoneGap(phonegap.com) to deploy to multiple platforms, like Windows 8, Windows 8 Phone, and Windows 7 Phone. These frameworks are supporting apps to be cross platforms (for Windows, iOS and Android). I am not sure what you mean to run an app on Windows 7, if you mean a web application running in the browsers, then a HTML5/JavaScript web app will also serve the purpose.

Thanks,


或者,您可能想要考虑将尽可能多的逻辑移动到云中。



每个客户端应用程序只需在特定平台上绘制玻璃,只需在所有平台上运行一个表示层。



就丰富程度而言,您确实会失去HTML,因为您将无法访问本机功能集和硬件。您最好的选择是从基于浏览器的HTML / JS解决方案开始,并将其移植到基于HTML的Windows 8应用程序,该应用程序将提供对硬件的访问以及最少重新编码的本机外观。
Alternatively, you may want to think about moving as much logic as possible to the cloud.

Each client app would just "paint the glass" on the specific platform, leaving you with just a presentation layer to run across all the platforms.

In terms of richness, you do lose out in HTML, as you will lose access to native feature sets and hardware. Your best bet is to start off with a browser-based HTML/JS solution and port that to an HTML based Windows 8 app that would provide access to hardware and a native look and feel with minimal re-coding.


这篇关于创建一个可以支持Windows 7,WinRT,Win8和Windows Mobile的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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