Windows Phone 7:“mailto:”在 WebBrowser 的 html 中没有触发 Navigating 事件
我有一个显示一些 html 的 WebBrowser 控件。
当用户单击某个带有“http:...”的链接时,导航事件将在我使用请求的 URL (WebBrowserTask) 打开 IE 时触发。
当用户单击带有“mailto:...”的链接时,我需要打开邮件(EmailComposeTask),但导航事件不会用“mailto”链接触发。该怎么做才能让它发挥作用?
I have a WebBrowser control which shows some html.
When user clicks some link with "http:...", Navigating event is firing where I am opening IE with requested URL (WebBrowserTask).
I need to open mailing (EmailComposeTask) when the user clicks links with "mailto:..." but Navigating event IS NOT firing with "mailto" links. What to do to make it work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要连接一个 onclick 事件以通过 Javascript 引发 ScriptNotify 事件 [via window.external.Notify]。
然后 WP7 将在您的 C# 代码中引发 ScriptNotify 事件。
完整来源和指南:http://www.willasrari.com/blog/external-urls-and-phone-numbers-in-wp7-webbrowser-control/000348.aspx
You need to wire up an onclick event to raise the ScriptNotify event [via window.external.Notify] via Javascript.
Then WP7 will raise the ScriptNotify event in your C# code.
Complete Source and Guide: http://www.willasrari.com/blog/external-urls-and-phone-numbers-in-wp7-webbrowser-control/000348.aspx