简体   繁体   English

wp8中有多个webview?

[英]Multiple webviews in wp8?

How do you embed a webview that can open other webviews that you can easily switch between into a PhoneGap application for Windows Phone 8? 如何嵌入可打开其他Web视图的Web视图,您可以轻松地在其他Web视图之间切换到Windows Phone 8的PhoneGap应用程序中? I can't find any resources on how to embed multiple webviews into a windows 8 mobile app. 我找不到有关如何将多个Web视图嵌入Windows 8移动应用程序的任何资源。 I'm really asking for any kind of guidance that could help. 我真的是在寻求可以提供帮助的任何指导。 Thanks. 谢谢。

Windows Phone does not support multiple WebBrowser controls on a single page. Windows Phone在单个页面上不支持多个WebBrowser控件。 You'll need to use multiple pages if you need multiple embedded browser controls or change the contents of a single embedded control. 如果需要多个嵌入式浏览器控件或更改单个嵌入式控件的内容,则需要使用多个页面。

Without knowing what you're trying to achieve it's hard to know what the best suitable approach could be for you. 不知道您要实现什么目标,就很难知道最适合您的方法是什么。

Take a look on ChildBrowser plugin which allows you to open a new browser window and even has events to capture responses from the spawned child window. 看一下ChildBrowser插件 ,该插件可让您打开新的浏览器窗口,甚至还具有捕获从生成的子窗口响应的事件。 This is the most closest thing in PhoneGap you are looking for. 这是您在PhoneGap中寻找的最接近的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM