Windows Phone 7 WebBrowser 控件吞下操作事件? [英] Windows Phone 7 WebBrowser control swallows manipulation events?

查看:26
本文介绍了Windows Phone 7 WebBrowser 控件吞下操作事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在任何页面上放置 WebBrowser 控件,该页面将不再响应 WebBrowser 下的操作事件.页面的其他区域工作正常.

If I place a WebBrowser control on any page, the page no longer responds to manipulation events under the WebBrowser. Other areas of the page work fine.

通过在页面中覆盖 OnManipulationCompleted,然后在页面上放置 WebBrowser 控件,可以轻松确认.尝试在 WebBrowser 上滑动,OnManipulationCompleted 永远不会被调用.

It's easily confirmed by overriding OnManipulationCompleted in a page, then placing a WebBrowser control on the page. Try swiping over the WebBrowser, and OnManipulationCompleted is never called.

我无法将 WebBrowser 设置为 IsHitTestVisible=false,因为我需要能够点击链接.但我希望页面响应向左/向右滑动.

I can't set the WebBrowser to IsHitTestVisible=false because I need to be able to click on links. But I want the page to respond to left/right swipes.

有人有什么好主意吗?或者知道这是否是当前版本中的错误?

Anyone got any bright ideas? Or know if this is a bug in the current release?

推荐答案

这是我们实施 WebBrowser 方式的结果.触摸事件直接传递给浏览器引擎.一旦发生这种情况,Silverlight 基本上就不会出现了.不幸的是,我想不出任何可能给你你想要的解决方法.-Skeets,MS 开发人员

This is a consequence of the way we implemented WebBrowser. The touch events are handed off directly to the browser engine. Once that happens Silverlight is basically out of the picture. Unfortunately I can't think of any workarounds that might give you what you want. -Skeets, MS dev

这篇关于Windows Phone 7 WebBrowser 控件吞下操作事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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