在带有外部URL的Windows phone 7上使用PhoneGap / Cordova [英] Using PhoneGap/Cordova on windows phone 7 with external URL

查看:103
本文介绍了在带有外部URL的Windows phone 7上使用PhoneGap / Cordova的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要我的Windows 7 Phonegap / Cordova应用程序在开始加载外部页面,没有本地。

I need my windows 7 Phonegap/Cordova app to load an external page on start and nothing local.

我找到一个解决方案为iOS和android,

I did find a solution for iOS and android , but i cant really find something solid for windows phone 7.

推荐答案

解决方案

通过 CordovaView 控制项(在MainPage.xaml上)的 StartPageUri 属性进行设置,例如

Set it via StartPageUri property of CordovaView control (on MainPage.xaml), for example

<my:CordovaView HorizontalAlignment="Stretch" 
                   StartPageUri = "http://mydomain/mypage.html"
                   Margin="0,0,0,0"  
                   Name="PGView" 
                   VerticalAlignment="Stretch" />

这篇关于在带有外部URL的Windows phone 7上使用PhoneGap / Cordova的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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