WinRT的 - 里面的ScrollViewer多个网页视图 [英] WinRT - Multiple WebViews inside ScrollViewer

查看:132
本文介绍了WinRT的 - 里面的ScrollViewer多个网页视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ScrollViewer中和网页视图中。

I have a ScrollViewer and WebViews inside.

<ScrollViewer x:Name="ScrollViewer" 
              HorizontalScrollMode="Disabled" 
              VerticalScrollMode="Auto" 
              VerticalScrollBarVisibility="Hidden">
    <StackPanel Orientation="Vertical">
        <WebView/>
        <WebView/>
        <WebView/>
        ...
        <WebView/>  
    </StackPanel>
</ScrollViewer>



所有的WebView有高度等于它的内容(我实现了类似WrapContent的web视图)。

现在的事情是,虽然滚动网页视图被退回(橡皮筋效应)的ScrollViewer不能滚动!有时它卷轴有时不是。结果
所以我的问题是,如何禁用的WebView滚动/弹跳(橡皮筋效应)?

All of WebView's have height equals to its content (I implemented something like WrapContent for webView).
Now, the thing is, that the webviews are bouncing (rubber-band effect) while scrolling and scrollviewer not scroll! Sometimes its scrolls and sometimes not.
So my question is how to disable scrolling/bounce(rubber-band effect) for WebView?

推荐答案

设置的WebView比它的内容更高度的高度,使内容风格溢出隐藏将停止橡皮筋效应

setting height of webview more than its content height and making the content style to overflow hidden will stop the rubberband effect

这篇关于WinRT的 - 里面的ScrollViewer多个网页视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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