简体   繁体   English

Xamarin.Forms - Webview(使用本地文件)无法在Windows Phone 8.1和10上运行

[英]Xamarin.Forms - Webview (with local files) not working on Windows Phone 8.1 & 10

I want to use WebView to access local HTML files (in Xamarin.forms) on windows phone 8.1/10. 我想在Windows Phone 8.1 / 10上使用WebView访问本地HTML文件(在Xamarin.forms中)。 I have it successfully working on Android however on windows phone, I get an error that says "Action was Cancelled" (Testing on Lumia 950). 我已成功在Android上工作但是在Windows手机上,我收到一条错误消息“行动被取消”(在Lumia 950上测试)。

I am new to Xamarin and went through the documentation on their website, the sample they have provided works with windows phone 8.0 and seems outdated as I was unable to deploy that (sample project) on to my Lumia 950. 我是Xamarin的新手并浏览了他们网站上的文档,他们提供的样本与Windows Phone 8.0一起工作,并且似乎已经过时了,因为我无法将其(示例项目)部署到我的Lumia 950上。

Please help out on how to approach this issue. 请帮忙解决如何处理此问题。

Please check your HTML, something is wrong. 请检查你的HTML,出了点问题。 Try to display something like 尝试显示类似的东西

<h1>Hello</h1>

It should be fine 应该没问题

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

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