silverlight - 在 WP7 的浏览器控件中禁用滚动?

标签 silverlight windows-phone-7 webbrowser-control

是否可以在 Windows Phone 7.1 中禁用 Web 浏览器控件中的滚动?我已经看到很多围绕它提出的问题(Windows Phone 7.0、Silverlight),但答案尚未出现。有任何想法吗?

最佳答案

有一个blog post here解释如何抑制 WebBrowser 控件的缩放和滚动功能。引用那篇文章:

The visual tree is quite simple, composed of a few grids and borders. The significant parts are the TileHost, which is the native IE9 component, and the PanZoomContainer. The TileHost does not handle the mouse manipulation events, these are instead handled by the PanZoomContainer, where they are then translated into gestures (i.e. pinch-zoom) with the result fed back to the TileHost.

What this means is that we can intercept the manipulation events as they bubble up to the PanZoomContainer, cancelling them before they are turned into gestures.

关于silverlight - 在 WP7 的浏览器控件中禁用滚动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8218107/

相关文章:

.net - 类型 XX 存在于两个 DLL 中

Silverlight 4 文本框不显示所有内容

silverlight - 为什么我的 Silverlight 应用程序使用如此多的非托管内存?

windows-phone-7 - ListBox的ControlTemplate样式时如何保持虚拟化?

c# - 我们如何阻止鼠标点击和按键被传输到网络浏览器中上传的文档?

c# - 如何将流/字符串中的 mht 加载到 WebBrowser 控件中?

c# - 如何从 WP7/Silverlight 上的数据流中分割大图像(10 000 x 10 000 及更大)

c# - 将位图图像转换为字节数组

c# - 消息过滤器指示应用程序正忙,同时使用多个 web 浏览器控件