是否可以在 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/