我可以使用phonegap创建Windows 8 xaml应用程序吗? [英] Can I create Windows 8 xaml app with phonegap

查看:95
本文介绍了我可以使用phonegap创建Windows 8 xaml应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我用phonegap创建了一个WP8应用程序。现在我需要为Windows 8创建相同的应用程序.PhoneGap说要使用Html5 / Javascript metro应用程序创建它。我需要使用Windows运行时组件来调用C#代码。我尝试在Windows运行时组件类中使用WebRequest,但IAsyncResult等类不可用。

如果我去Html5 / Javascript metro应用程序,我将不得不写很多我的javascript中的代码(除了已存在的代码)。所以,我想到使用Windows 8 Xaml应用程序。但是我认为phoneGap不适用于它。



此外,我有很多功能要在本机C#代码中执行。我尝试过的一件事是从Windows运行时组件库调用一个类库。但我不确定它是否是正确的方法。而且,它不允许我调试用Windows运行时组件类编写的代码。



请建议我应该采用什么方法?

此外,是否有适用于Windows 8 metro应用程序(独立存储或本地数据库)的数据库。



谢谢。

Hi,

I have created a WP8 application with phonegap. Now i need to create same application for Windows 8. PhoneGap says to create it using Html5/Javascript metro app. There i need to use windows Runtime Component to call C# code. I tried to use WebRequest in a windows Runtime Component class, but IAsyncResult etc. classes are not available in it.
If I go for Html5/Javascript metro app, i will have to write a lot of my code in javascript (except the one which is already there). So, i thought of using Windows 8 Xaml app. but i think phoneGap is not available for it.

Also, I have a lot of functionality to be performed in native C# code. One thing i tried is calling a class library from windows Runtime Component library. but i am not sure if its a right approach. And also, it doesn't allow me to debug the code written in windows Runtime Component classes.

Please suggest me what approach i should go with?
Also, is there any database available for Windows 8 metro apps (isolated storage or local DB).

Thanks.

推荐答案

Visual Studio是你的朋友;)

http://msdn.microsoft.com/en-US/windows/apps/br229519 [ ^ ]
Visual Studio is your friend ;)
http://msdn.microsoft.com/en-US/windows/apps/br229519[^]


这篇关于我可以使用phonegap创建Windows 8 xaml应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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